<html>
 <head>
  <meta charset="utf-8"/>
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"/>
  <title>
   R和JSON的傻瓜式编程  | 数螺 | NAUT IDEA
  </title>
  <link href="http://cdn.bootcss.com/bootstrap/3.3.6/css/bootstrap-theme.min.css" rel="stylesheet"/>
  <link href="http://cdn.bootcss.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet"/>
  <style type="text/css">
   #xmain img {
                  max-width: 100%;
                  display: block;
                  margin-top: 10px;
                  margin-bottom: 10px;
                }

                #xmain p {
                    line-height:150%;
                    font-size: 16px;
                    margin-top: 20px;
                }

                #xmain h2 {
                    font-size: 24px;
                }

                #xmain h3 {
                    font-size: 20px;
                }

                #xmain h4 {
                    font-size: 18px;
                }


                .header {
	           background-color: #0099ff;
	           color: #ffffff;
	           margin-bottom: 20px;
	        }

	        .header p {
                  margin: 0px;
                  padding: 10px 0;
                  display: inline-block;  
                  vertical-align: middle;
                  font-size: 16px;
               }

               .header a {
                 color: white;
               }

              .header img {
                 height: 25px;
              }
  </style>
  <script src="http://cdn.bootcss.com/jquery/3.0.0/jquery.min.js">
  </script>
  <script src="http://nautstatic-10007657.file.myqcloud.com/static/css/readability.min.js" type="text/javascript">
  </script>
  <script type="text/javascript">
   $(document).ready(function() {
                 var loc = document.location;
                 var uri = {
                  spec: "http://dataunion.org/1368.html",
                  host: "http://dataunion.org",
                  prePath: "http://dataunion.org",
                  scheme: "http",
                  pathBase: "http://dataunion.org/"
                 };
    
                 var documentClone = document.cloneNode(true);
                 var article = new Readability(uri, documentClone).parse();
     
                 document.getElementById("xmain").innerHTML = article.content;
                });
  </script>
  <!-- 1466460620: Accept with keywords: (title(0.0):社区,傻瓜式,数盟,编程, topn(0.2):社区,列式,数盟,行业资讯,R语言,数组,数据挖掘,类库,文件,自定义,结果,职业规划,文档,文章,格式,傻瓜式,函数,对象,性能,编程,用户,转型,基础架构,可视化,脚本,编程语言,行式,系统,命令行,序列化).-->
 </head>
 <body onload="">
  <div class="header">
   <div class="container">
    <div class="row">
     <div class="col-xs-6 col-sm-6 text-left">
      <a href="/databee">
       <img src="http://nautidea-10007657.cos.myqcloud.com/logo_white.png"/>
      </a>
      <a href="/databee">
       <p>
        数螺
       </p>
      </a>
     </div>
     <div class="hidden-xs col-sm-6 text-right">
      <p>
       致力于数据科学的推广和知识传播
      </p>
     </div>
    </div>
   </div>
  </div>
  <div class="container text-center">
   <h1>
    R和JSON的傻瓜式编程
   </h1>
  </div>
  <div class="container" id="xmain">
   ﻿﻿
   <title>
    R和JSON的傻瓜式编程 | 数盟社区
   </title>
   <!-- All in One SEO Pack 2.2.7.6.2 by Michael Torbert of Semper Fi Web Design[32,59] -->
   <!-- /all in one seo pack -->
   <!--
<div align="center">
<a href="http://strata.oreilly.com.cn/hadoop-big-data-cn?cmp=mp-data-confreg-home-stcn16_dataunion_pc" target="_blank"><img src="http://dataunion.org/wp-content/uploads/2016/05/stratabj.jpg"/ ></a>
</div>
-->
   <header id="header-web">
    <div class="header-main">
     <hgroup class="logo">
      <h1>
       <a href="http://dataunion.org/" rel="home" title="数盟社区">
        <img src="http://dataunion.org/wp-content/themes/yzipi/images/logo.png"/>
       </a>
      </h1>
     </hgroup>
     <!--logo-->
     <nav class="header-nav">
      <ul class="menu" id="menu-%e4%b8%bb%e8%8f%9c%e5%8d%95">
       <li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-has-children menu-item-71" id="menu-item-71">
        <a href="http://dataunion.org/category/events" title="events">
         活动
        </a>
        <ul class="sub-menu">
         <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-22457" id="menu-item-22457">
          <a href="http://dataunion.org/2016timeline">
           2016档期
          </a>
         </li>
         <li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-22459" id="menu-item-22459">
          <a href="http://dataunion.org/category/parterc">
           合作会议
          </a>
         </li>
        </ul>
       </li>
       <li class="menu-item menu-item-type-taxonomy menu-item-object-category current-post-ancestor menu-item-has-children menu-item-20869" id="menu-item-20869">
        <a href="http://dataunion.org/category/tech" title="articles">
         文章
        </a>
        <ul class="sub-menu">
         <li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-20867" id="menu-item-20867">
          <a href="http://dataunion.org/category/tech/base" title="base">
           基础架构
          </a>
         </li>
         <li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-3302" id="menu-item-3302">
          <a href="http://dataunion.org/category/tech/ai" title="ai">
           人工智能
          </a>
         </li>
         <li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-3303" id="menu-item-3303">
          <a href="http://dataunion.org/category/tech/analysis" title="analysis">
           数据分析
          </a>
         </li>
         <li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-21920" id="menu-item-21920">
          <a href="http://dataunion.org/category/tech/dm">
           数据挖掘
          </a>
         </li>
         <li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-3314" id="menu-item-3314">
          <a href="http://dataunion.org/category/tech/viz" title="viz">
           可视化
          </a>
         </li>
         <li class="menu-item menu-item-type-taxonomy menu-item-object-category current-post-ancestor current-menu-parent current-post-parent menu-item-3305" id="menu-item-3305">
          <a href="http://dataunion.org/category/tech/devl" title="devl">
           编程语言
          </a>
         </li>
        </ul>
       </li>
       <li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-has-children menu-item-20876" id="menu-item-20876">
        <a href="http://dataunion.org/category/industry">
         行业
        </a>
        <ul class="sub-menu">
         <li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-16328" id="menu-item-16328">
          <a href="http://dataunion.org/category/industry/case" title="case">
           行业应用
          </a>
         </li>
         <li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-2112" id="menu-item-2112">
          <a href="http://dataunion.org/category/industry/demo" title="demo">
           Demo展示
          </a>
         </li>
         <li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-21562" id="menu-item-21562">
          <a href="http://dataunion.org/category/industry/news">
           行业资讯
          </a>
         </li>
        </ul>
       </li>
       <li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-311" id="menu-item-311">
        <a href="http://dataunion.org/category/sources" title="sources">
         资源
        </a>
       </li>
       <li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-20870" id="menu-item-20870">
        <a href="http://dataunion.org/category/books" title="book">
         图书
        </a>
       </li>
       <li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-21363" id="menu-item-21363">
        <a href="http://dataunion.org/category/training">
         课程
        </a>
       </li>
       <li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-has-children menu-item-21853" id="menu-item-21853">
        <a href="http://dataunion.org/category/jobs">
         职位
        </a>
        <ul class="sub-menu">
         <li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-22050" id="menu-item-22050">
          <a href="http://dataunion.org/category/career">
           职业规划
          </a>
         </li>
        </ul>
       </li>
      </ul>
     </nav>
     <!--header-nav-->
    </div>
   </header>
   <!--header-web-->
   <div id="main">
    <div id="soutab">
     <form action="http://dataunion.org/" class="search" method="get">
     </form>
    </div>
    <div id="container">
     <nav id="mbx">
      当前位置：
      <a href="http://dataunion.org">
       首页
      </a>
      &gt;
      <a href="http://dataunion.org/category/tech">
       文章
      </a>
      &gt;
      <a href="http://dataunion.org/category/tech/devl">
       编程语言
      </a>
      &gt;  正文
     </nav>
     <!--mbx-->
     <article class="content">
      <header align="centre" class="contenttitle">
       <div class="mscc">
        <h1 class="mscctitle">
         <a href="http://dataunion.org/1368.html">
          R和JSON的傻瓜式编程
         </a>
        </h1>
        <address class="msccaddress ">
         <em>
          1,968 次阅读 -
         </em>
         <a href="http://dataunion.org/category/tech/devl" rel="category tag">
          编程语言
         </a>
        </address>
       </div>
      </header>
      <div class="content-text">
       <p style="color: #4d4d4f;">
        <b>
         原文链接：
        </b>
        <a href="http://blog.fens.me/r-json-rjson/" style="color: #0e73b8;" target="_blank" title="R与JSON的傻瓜式编程">
         http://blog.fens.me/r-json-rjson/
        </a>
       </p>
       <p style="color: #4d4d4f;">
        <a href="http://dataunion.org/wp-content/uploads/2015/01/rjson.png" style="color: #0e73b8;">
         <img src="http://dataunion.org/wp-content/uploads/2015/01/rjson.png"/>
        </a>
       </p>
       <p style="color: #4d4d4f;">
        <strong>
         前言
        </strong>
       </p>
       <p style="color: #4d4d4f;">
        JSON作为一种轻量级数据格式，被大量地应用在各种程序环境中。JSON(JavaScript Object Notation)是Javascript的内嵌的标准对象，同时也是MongoDB的表结构存储类型。JSON是半结构化的，可以表达出丰富的文档含义。JSON文档比XML文档要少很多，更适合于网络传输。
       </p>
       <p style="color: #4d4d4f;">
        早期R语言编程很少会用到JSON，但随着R语言的壮大，R也在伸向各种领域，JSON就是与其他领域的一个交点。
       </p>
       <p style="color: #4d4d4f;">
        如何让R语言傻瓜式花转JSON？请看正文介绍。
       </p>
       <p style="color: #4d4d4f;">
        <strong>
         目录
        </strong>
       </p>
       <ol style="color: #4d4d4f;">
        <li>
         rjson包介绍
        </li>
        <li>
         RJSONIO包介绍
        </li>
        <li>
         自定义JSON的实现
        </li>
        <li>
         toJSON性能比较: 我的测试结果rjson比RJSONIO更高效
        </li>
       </ol>
       <h2 style="color: #434343;">
        1. rjson包介绍
       </h2>
       <p style="color: #4d4d4f;">
        rjson是一个R语言与json进行转的包，是一个非常简单的包，支持用 C类库转型和R语言本身转型两种方式。
       </p>
       <p style="color: #4d4d4f;">
        rjson库，提供的函数只有3个，fromJSON(), newJSONParser(), toJSON()。 下面我们将介绍rjson库如何使用。
       </p>
       <p style="color: #4d4d4f;">
        <strong>
         我的系统环境
        </strong>
       </p>
       <ul style="color: #4d4d4f;">
        <li>
         Win7: x86_64-w64-mingw32/x64 (64-bit)
        </li>
        <li>
         R: version 3.0.1 (2013-05-16)
        </li>
       </ul>
       <p style="color: #4d4d4f;">
        <strong>
         1). 安装和加载rjson
        </strong>
       </p>
       <p>
       </p>
       <!-- Crayon Syntax Highlighter v_2.7.2_beta -->
       <div class="crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" id="crayon-576869bd1d7f9563407597" style=" margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important;">
        <div class="crayon-toolbar" data-settings=" mouseover overlay hide delay" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
         <span class="crayon-title">
         </span>
         <div class="crayon-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
          <div class="crayon-button crayon-nums-button" title="切换是否显示行编号">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-plain-button" title="纯文本显示代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-wrap-button" title="切换自动换行">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-expand-button" title="点击展开代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-copy-button" title="复制代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-popup-button" title="在新窗口中显示代码">
           <div class="crayon-button-icon">
           </div>
          </div>
         </div>
        </div>
        <div class="crayon-info" style="min-height: 16.8px !important; line-height: 16.8px !important;">
        </div>
        <div class="crayon-plain-wrap">
         <textarea class="crayon-plain print-no" data-settings="dblclick" readonly="" style="-moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4; font-size: 12px !important; line-height: 15px !important;" wrap="soft">
          install.packages("rjson")
library(rjson)
         </textarea>
        </div>
        <div class="crayon-main" style="">
         <table class="crayon-table">
          <tbody>
           <tr class="crayon-row">
            <td class="crayon-nums " data-settings="show">
             <div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;">
              <div class="crayon-num" data-line="crayon-576869bd1d7f9563407597-1">
               1
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d7f9563407597-2">
               2
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d7f9563407597-3">
               3
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d7f9563407597-4">
               4
              </div>
             </div>
            </td>
            <td class="crayon-code">
             <div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;">
              <div class="crayon-line" id="crayon-576869bd1d7f9563407597-1">
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d7f9563407597-2">
               <span class="crayon-v">
                install
               </span>
               <span class="crayon-sy">
                .
               </span>
               <span class="crayon-e">
                packages
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-s">
                "rjson"
               </span>
               <span class="crayon-sy">
                )
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d7f9563407597-3">
               <span class="crayon-e">
                library
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                rjson
               </span>
               <span class="crayon-sy">
                )
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d7f9563407597-4">
              </div>
             </div>
            </td>
           </tr>
          </tbody>
         </table>
        </div>
       </div>
       <!-- [Format Time: 0.0098 seconds] -->
       <p>
       </p>
       <p style="color: #4d4d4f;">
        新建一个JSON文件: fin0.json
       </p>
       <p>
       </p>
       <!-- Crayon Syntax Highlighter v_2.7.2_beta -->
       <div class="crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" id="crayon-576869bd1d80a019821882" style=" margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important;">
        <div class="crayon-toolbar" data-settings=" mouseover overlay hide delay" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
         <span class="crayon-title">
         </span>
         <div class="crayon-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
          <div class="crayon-button crayon-nums-button" title="切换是否显示行编号">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-plain-button" title="纯文本显示代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-wrap-button" title="切换自动换行">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-expand-button" title="点击展开代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-copy-button" title="复制代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-popup-button" title="在新窗口中显示代码">
           <div class="crayon-button-icon">
           </div>
          </div>
         </div>
        </div>
        <div class="crayon-info" style="min-height: 16.8px !important; line-height: 16.8px !important;">
        </div>
        <div class="crayon-plain-wrap">
         <textarea class="crayon-plain print-no" data-settings="dblclick" readonly="" style="-moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4; font-size: 12px !important; line-height: 15px !important;" wrap="soft">
          ~ vi fin0.json

{
    "table1": {
        "time": "130911",
        "data": {
            "code": [
                "TF1312",
                "TF1403",
                "TF1406"
            ],
            "rt_time": [
                130911,
                130911,
                130911
            ]
        }
    },
    "table2": {
        "time": "130911",
        "data": {
            "contract": [
                "TF1312",
                "TF1312",
                "TF1403"
            ],
            "jtid": [
                99,
                65,
                21
            ]
        }
    }
}
         </textarea>
        </div>
        <div class="crayon-main" style="">
         <table class="crayon-table">
          <tbody>
           <tr class="crayon-row">
            <td class="crayon-nums " data-settings="show">
             <div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;">
              <div class="crayon-num" data-line="crayon-576869bd1d80a019821882-1">
               1
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d80a019821882-2">
               2
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d80a019821882-3">
               3
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d80a019821882-4">
               4
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d80a019821882-5">
               5
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d80a019821882-6">
               6
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d80a019821882-7">
               7
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d80a019821882-8">
               8
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d80a019821882-9">
               9
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d80a019821882-10">
               10
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d80a019821882-11">
               11
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d80a019821882-12">
               12
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d80a019821882-13">
               13
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d80a019821882-14">
               14
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d80a019821882-15">
               15
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d80a019821882-16">
               16
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d80a019821882-17">
               17
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d80a019821882-18">
               18
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d80a019821882-19">
               19
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d80a019821882-20">
               20
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d80a019821882-21">
               21
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d80a019821882-22">
               22
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d80a019821882-23">
               23
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d80a019821882-24">
               24
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d80a019821882-25">
               25
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d80a019821882-26">
               26
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d80a019821882-27">
               27
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d80a019821882-28">
               28
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d80a019821882-29">
               29
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d80a019821882-30">
               30
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d80a019821882-31">
               31
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d80a019821882-32">
               32
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d80a019821882-33">
               33
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d80a019821882-34">
               34
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d80a019821882-35">
               35
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d80a019821882-36">
               36
              </div>
             </div>
            </td>
            <td class="crayon-code">
             <div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;">
              <div class="crayon-line" id="crayon-576869bd1d80a019821882-1">
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d80a019821882-2">
               <span class="crayon-o">
                ~
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-e">
                vi
               </span>
               <span class="crayon-v">
                fin0
               </span>
               <span class="crayon-sy">
                .
               </span>
               <span class="crayon-i">
                json
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d80a019821882-3">
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d80a019821882-4">
               <span class="crayon-sy">
                {
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d80a019821882-5">
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "table1"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                {
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d80a019821882-6">
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "time"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "130911"
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d80a019821882-7">
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "data"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                {
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d80a019821882-8">
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "code"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                [
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d80a019821882-9">
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "TF1312"
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d80a019821882-10">
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "TF1403"
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d80a019821882-11">
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "TF1406"
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d80a019821882-12">
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                ]
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d80a019821882-13">
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "rt_time"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                [
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d80a019821882-14">
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                130911
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d80a019821882-15">
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                130911
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d80a019821882-16">
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                130911
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d80a019821882-17">
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                ]
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d80a019821882-18">
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                }
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d80a019821882-19">
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                }
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d80a019821882-20">
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "table2"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                {
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d80a019821882-21">
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "time"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "130911"
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d80a019821882-22">
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "data"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                {
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d80a019821882-23">
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "contract"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                [
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d80a019821882-24">
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "TF1312"
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d80a019821882-25">
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "TF1312"
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d80a019821882-26">
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "TF1403"
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d80a019821882-27">
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                ]
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d80a019821882-28">
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "jtid"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                [
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d80a019821882-29">
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                99
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d80a019821882-30">
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                65
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d80a019821882-31">
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                21
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d80a019821882-32">
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                ]
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d80a019821882-33">
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                }
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d80a019821882-34">
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                }
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d80a019821882-35">
               <span class="crayon-sy">
                }
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d80a019821882-36">
              </div>
             </div>
            </td>
           </tr>
          </tbody>
         </table>
        </div>
       </div>
       <!-- [Format Time: 0.0116 seconds] -->
       <p>
       </p>
       <p style="color: #4d4d4f;">
        <strong>
         2). fromJSON() 从JSON到R
        </strong>
        <br/>
        从fin0.json文件中，读取JSON并解析为R语言对象。
       </p>
       <p>
       </p>
       <!-- Crayon Syntax Highlighter v_2.7.2_beta -->
       <div class="crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" id="crayon-576869bd1d812453819040" style=" margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important;">
        <div class="crayon-toolbar" data-settings=" mouseover overlay hide delay" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
         <span class="crayon-title">
         </span>
         <div class="crayon-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
          <div class="crayon-button crayon-nums-button" title="切换是否显示行编号">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-plain-button" title="纯文本显示代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-wrap-button" title="切换自动换行">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-expand-button" title="点击展开代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-copy-button" title="复制代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-popup-button" title="在新窗口中显示代码">
           <div class="crayon-button-icon">
           </div>
          </div>
         </div>
        </div>
        <div class="crayon-info" style="min-height: 16.8px !important; line-height: 16.8px !important;">
        </div>
        <div class="crayon-plain-wrap">
         <textarea class="crayon-plain print-no" data-settings="dblclick" readonly="" style="-moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4; font-size: 12px !important; line-height: 15px !important;" wrap="soft">
          &amp;gt; json_data &amp;lt;- fromJSON(paste(readLines("fin0.json"), collapse=""))
&amp;gt; json_data
$table1
$table1$time
[1] "130911"

$table1$data
$table1$data$code
[1] "TF1312" "TF1403" "TF1406"

$table1$data$rt_time
[1] 130911 130911 130911

$table2
$table2$time
[1] "130911"

$table2$data
$table2$data$contract
[1] "TF1312" "TF1312" "TF1403"

$table2$data$jtid
[1] 99 65 21
         </textarea>
        </div>
        <div class="crayon-main" style="">
         <table class="crayon-table">
          <tbody>
           <tr class="crayon-row">
            <td class="crayon-nums " data-settings="show">
             <div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;">
              <div class="crayon-num" data-line="crayon-576869bd1d812453819040-1">
               1
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d812453819040-2">
               2
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d812453819040-3">
               3
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d812453819040-4">
               4
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d812453819040-5">
               5
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d812453819040-6">
               6
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d812453819040-7">
               7
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d812453819040-8">
               8
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d812453819040-9">
               9
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d812453819040-10">
               10
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d812453819040-11">
               11
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d812453819040-12">
               12
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d812453819040-13">
               13
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d812453819040-14">
               14
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d812453819040-15">
               15
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d812453819040-16">
               16
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d812453819040-17">
               17
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d812453819040-18">
               18
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d812453819040-19">
               19
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d812453819040-20">
               20
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d812453819040-21">
               21
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d812453819040-22">
               22
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d812453819040-23">
               23
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d812453819040-24">
               24
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d812453819040-25">
               25
              </div>
             </div>
            </td>
            <td class="crayon-code">
             <div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;">
              <div class="crayon-line" id="crayon-576869bd1d812453819040-1">
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d812453819040-2">
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                gt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                json_data
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                lt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-o">
                -
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-e">
                fromJSON
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-e">
                paste
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-e">
                readLines
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-s">
                "fin0.json"
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                collapse
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                ""
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-sy">
                )
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d812453819040-3">
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                gt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                json
               </span>
               <span class="crayon-sy">
                _
               </span>
               data
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d812453819040-4">
               <span class="crayon-sy">
                $
               </span>
               <span class="crayon-i">
                table1
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d812453819040-5">
               <span class="crayon-sy">
                $
               </span>
               <span class="crayon-v">
                table1
               </span>
               <span class="crayon-sy">
                $
               </span>
               <span class="crayon-i">
                time
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d812453819040-6">
               <span class="crayon-sy">
                [
               </span>
               <span class="crayon-cn">
                1
               </span>
               <span class="crayon-sy">
                ]
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "130911"
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d812453819040-7">
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d812453819040-8">
               <span class="crayon-sy">
                $
               </span>
               <span class="crayon-v">
                table1
               </span>
               <span class="crayon-sy">
                $
               </span>
               <span class="crayon-i">
                data
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d812453819040-9">
               <span class="crayon-sy">
                $
               </span>
               <span class="crayon-v">
                table1
               </span>
               <span class="crayon-sy">
                $
               </span>
               <span class="crayon-v">
                data
               </span>
               <span class="crayon-sy">
                $
               </span>
               <span class="crayon-i">
                code
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d812453819040-10">
               <span class="crayon-sy">
                [
               </span>
               <span class="crayon-cn">
                1
               </span>
               <span class="crayon-sy">
                ]
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "TF1312"
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "TF1403"
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "TF1406"
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d812453819040-11">
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d812453819040-12">
               <span class="crayon-sy">
                $
               </span>
               <span class="crayon-v">
                table1
               </span>
               <span class="crayon-sy">
                $
               </span>
               <span class="crayon-v">
                data
               </span>
               <span class="crayon-sy">
                $
               </span>
               <span class="crayon-v">
                rt
               </span>
               <span class="crayon-sy">
                _
               </span>
               time
              </div>
              <div class="crayon-line" id="crayon-576869bd1d812453819040-13">
               <span class="crayon-sy">
                [
               </span>
               <span class="crayon-cn">
                1
               </span>
               <span class="crayon-sy">
                ]
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                130911
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                130911
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                130911
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d812453819040-14">
              </div>
              <div class="crayon-line" id="crayon-576869bd1d812453819040-15">
               <span class="crayon-sy">
                $
               </span>
               <span class="crayon-i">
                table2
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d812453819040-16">
               <span class="crayon-sy">
                $
               </span>
               <span class="crayon-v">
                table2
               </span>
               <span class="crayon-sy">
                $
               </span>
               <span class="crayon-i">
                time
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d812453819040-17">
               <span class="crayon-sy">
                [
               </span>
               <span class="crayon-cn">
                1
               </span>
               <span class="crayon-sy">
                ]
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "130911"
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d812453819040-18">
              </div>
              <div class="crayon-line" id="crayon-576869bd1d812453819040-19">
               <span class="crayon-sy">
                $
               </span>
               <span class="crayon-v">
                table2
               </span>
               <span class="crayon-sy">
                $
               </span>
               <span class="crayon-i">
                data
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d812453819040-20">
               <span class="crayon-sy">
                $
               </span>
               <span class="crayon-v">
                table2
               </span>
               <span class="crayon-sy">
                $
               </span>
               <span class="crayon-v">
                data
               </span>
               <span class="crayon-sy">
                $
               </span>
               <span class="crayon-i">
                contract
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d812453819040-21">
               <span class="crayon-sy">
                [
               </span>
               <span class="crayon-cn">
                1
               </span>
               <span class="crayon-sy">
                ]
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "TF1312"
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "TF1312"
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "TF1403"
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d812453819040-22">
              </div>
              <div class="crayon-line" id="crayon-576869bd1d812453819040-23">
               <span class="crayon-sy">
                $
               </span>
               <span class="crayon-v">
                table2
               </span>
               <span class="crayon-sy">
                $
               </span>
               <span class="crayon-v">
                data
               </span>
               <span class="crayon-sy">
                $
               </span>
               <span class="crayon-i">
                jtid
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d812453819040-24">
               <span class="crayon-sy">
                [
               </span>
               <span class="crayon-cn">
                1
               </span>
               <span class="crayon-sy">
                ]
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                99
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                65
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                21
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d812453819040-25">
              </div>
             </div>
            </td>
           </tr>
          </tbody>
         </table>
        </div>
       </div>
       <!-- [Format Time: 0.0163 seconds] -->
       <p>
       </p>
       <p style="color: #4d4d4f;">
        我们看到原JSON，除最内层都被解析为R的list类型，最内层则是向量类型。
       </p>
       <p style="color: #4d4d4f;">
        在R对象结构中取叶子节点, json.table1.data.code[0]
       </p>
       <p>
       </p>
       <!-- Crayon Syntax Highlighter v_2.7.2_beta -->
       <div class="crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" id="crayon-576869bd1d81c059365265" style=" margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important;">
        <div class="crayon-toolbar" data-settings=" mouseover overlay hide delay" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
         <span class="crayon-title">
         </span>
         <div class="crayon-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
          <div class="crayon-button crayon-nums-button" title="切换是否显示行编号">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-plain-button" title="纯文本显示代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-wrap-button" title="切换自动换行">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-expand-button" title="点击展开代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-copy-button" title="复制代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-popup-button" title="在新窗口中显示代码">
           <div class="crayon-button-icon">
           </div>
          </div>
         </div>
        </div>
        <div class="crayon-info" style="min-height: 16.8px !important; line-height: 16.8px !important;">
        </div>
        <div class="crayon-plain-wrap">
         <textarea class="crayon-plain print-no" data-settings="dblclick" readonly="" style="-moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4; font-size: 12px !important; line-height: 15px !important;" wrap="soft">
          &amp;gt; json_data$table1$data$code
[1] "TF1312" "TF1403" "TF1406"

&amp;gt; json_data$table1$data$code[1]
[1] "TF1312"
         </textarea>
        </div>
        <div class="crayon-main" style="">
         <table class="crayon-table">
          <tbody>
           <tr class="crayon-row">
            <td class="crayon-nums " data-settings="show">
             <div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;">
              <div class="crayon-num" data-line="crayon-576869bd1d81c059365265-1">
               1
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d81c059365265-2">
               2
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d81c059365265-3">
               3
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d81c059365265-4">
               4
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d81c059365265-5">
               5
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d81c059365265-6">
               6
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d81c059365265-7">
               7
              </div>
             </div>
            </td>
            <td class="crayon-code">
             <div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;">
              <div class="crayon-line" id="crayon-576869bd1d81c059365265-1">
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d81c059365265-2">
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                gt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                json_data
               </span>
               <span class="crayon-sy">
                $
               </span>
               <span class="crayon-v">
                table1
               </span>
               <span class="crayon-sy">
                $
               </span>
               <span class="crayon-v">
                data
               </span>
               <span class="crayon-sy">
                $
               </span>
               <span class="crayon-i">
                code
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d81c059365265-3">
               <span class="crayon-sy">
                [
               </span>
               <span class="crayon-cn">
                1
               </span>
               <span class="crayon-sy">
                ]
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "TF1312"
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "TF1403"
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "TF1406"
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d81c059365265-4">
              </div>
              <div class="crayon-line" id="crayon-576869bd1d81c059365265-5">
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                gt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                json_data
               </span>
               <span class="crayon-sy">
                $
               </span>
               <span class="crayon-v">
                table1
               </span>
               <span class="crayon-sy">
                $
               </span>
               <span class="crayon-v">
                data
               </span>
               <span class="crayon-sy">
                $
               </span>
               <span class="crayon-v">
                code
               </span>
               <span class="crayon-sy">
                [
               </span>
               <span class="crayon-cn">
                1
               </span>
               <span class="crayon-sy">
                ]
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d81c059365265-6">
               <span class="crayon-sy">
                [
               </span>
               <span class="crayon-cn">
                1
               </span>
               <span class="crayon-sy">
                ]
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "TF1312"
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d81c059365265-7">
              </div>
             </div>
            </td>
           </tr>
          </tbody>
         </table>
        </div>
       </div>
       <!-- [Format Time: 0.0019 seconds] -->
       <p>
       </p>
       <p style="color: #4d4d4f;">
        <strong>
         3). toJSON() 从R到JSON
        </strong>
        <br/>
        把R对象序列化为JSON串，还以刚才的json_data为例
       </p>
       <p>
       </p>
       <!-- Crayon Syntax Highlighter v_2.7.2_beta -->
       <div class="crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" id="crayon-576869bd1d829548270478" style=" margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important;">
        <div class="crayon-toolbar" data-settings=" mouseover overlay hide delay" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
         <span class="crayon-title">
         </span>
         <div class="crayon-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
          <div class="crayon-button crayon-nums-button" title="切换是否显示行编号">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-plain-button" title="纯文本显示代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-wrap-button" title="切换自动换行">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-expand-button" title="点击展开代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-copy-button" title="复制代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-popup-button" title="在新窗口中显示代码">
           <div class="crayon-button-icon">
           </div>
          </div>
         </div>
        </div>
        <div class="crayon-info" style="min-height: 16.8px !important; line-height: 16.8px !important;">
        </div>
        <div class="crayon-plain-wrap">
         <textarea class="crayon-plain print-no" data-settings="dblclick" readonly="" style="-moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4; font-size: 12px !important; line-height: 15px !important;" wrap="soft">
          &amp;gt; json_str&amp;lt;-toJSON(json_data)

&amp;gt; print(json_str)
[1] "{\"table1\":{\"time\":\"130911\",\"data\":{\"code\":[\"TF1312\",\"TF1403\",\"TF1406\"],\"rt_time\":[130911,130911,130911]}},\"table2\":{\"time\":\"130911\",\"data\":{\"contract\":[\"TF1312\",\"TF1312\",\"TF1403\"],\"jtid\":[99,65,21]}}}"

&amp;gt; cat(json_str)
{"table1":{"time":"130911","data":{"code":["TF1312","TF1403","TF1406"],"rt_time":[130911,130911,130911]}},"table2":{"time":"130911","data":{"contract":["TF1312","TF1312","TF1403"],"jtid":[99,65,21]}}}
         </textarea>
        </div>
        <div class="crayon-main" style="">
         <table class="crayon-table">
          <tbody>
           <tr class="crayon-row">
            <td class="crayon-nums " data-settings="show">
             <div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;">
              <div class="crayon-num" data-line="crayon-576869bd1d829548270478-1">
               1
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d829548270478-2">
               2
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d829548270478-3">
               3
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d829548270478-4">
               4
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d829548270478-5">
               5
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d829548270478-6">
               6
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d829548270478-7">
               7
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d829548270478-8">
               8
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d829548270478-9">
               9
              </div>
             </div>
            </td>
            <td class="crayon-code">
             <div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;">
              <div class="crayon-line" id="crayon-576869bd1d829548270478-1">
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d829548270478-2">
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                gt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                json_str
               </span>
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                lt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-o">
                -
               </span>
               <span class="crayon-e">
                toJSON
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                json_data
               </span>
               <span class="crayon-sy">
                )
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d829548270478-3">
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d829548270478-4">
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                gt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-e">
                print
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                json_str
               </span>
               <span class="crayon-sy">
                )
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d829548270478-5">
               <span class="crayon-sy">
                [
               </span>
               <span class="crayon-cn">
                1
               </span>
               <span class="crayon-sy">
                ]
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "{\"table1\":{\"time\":\"130911\",\"data\":{\"code\":[\"TF1312\",\"TF1403\",\"TF1406\"],\"rt_time\":[130911,130911,130911]}},\"table2\":{\"time\":\"130911\",\"data\":{\"contract\":[\"TF1312\",\"TF1312\",\"TF1403\"],\"jtid\":[99,65,21]}}}"
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d829548270478-6">
              </div>
              <div class="crayon-line" id="crayon-576869bd1d829548270478-7">
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                gt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-e">
                cat
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                json_str
               </span>
               <span class="crayon-sy">
                )
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d829548270478-8">
               <span class="crayon-sy">
                {
               </span>
               <span class="crayon-s">
                "table1"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-sy">
                {
               </span>
               <span class="crayon-s">
                "time"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-s">
                "130911"
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-s">
                "data"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-sy">
                {
               </span>
               <span class="crayon-s">
                "code"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-sy">
                [
               </span>
               <span class="crayon-s">
                "TF1312"
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-s">
                "TF1403"
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-s">
                "TF1406"
               </span>
               <span class="crayon-sy">
                ]
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-s">
                "rt_time"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-sy">
                [
               </span>
               <span class="crayon-cn">
                130911
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-cn">
                130911
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-cn">
                130911
               </span>
               <span class="crayon-sy">
                ]
               </span>
               <span class="crayon-sy">
                }
               </span>
               <span class="crayon-sy">
                }
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-s">
                "table2"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-sy">
                {
               </span>
               <span class="crayon-s">
                "time"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-s">
                "130911"
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-s">
                "data"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-sy">
                {
               </span>
               <span class="crayon-s">
                "contract"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-sy">
                [
               </span>
               <span class="crayon-s">
                "TF1312"
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-s">
                "TF1312"
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-s">
                "TF1403"
               </span>
               <span class="crayon-sy">
                ]
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-s">
                "jtid"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-sy">
                [
               </span>
               <span class="crayon-cn">
                99
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-cn">
                65
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-cn">
                21
               </span>
               <span class="crayon-sy">
                ]
               </span>
               <span class="crayon-sy">
                }
               </span>
               <span class="crayon-sy">
                }
               </span>
               <span class="crayon-sy">
                }
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d829548270478-9">
              </div>
             </div>
            </td>
           </tr>
          </tbody>
         </table>
        </div>
       </div>
       <!-- [Format Time: 0.0266 seconds] -->
       <p>
       </p>
       <p style="color: #4d4d4f;">
        我们只要使用toJSON()函数，就可以实现R对象向JSON的转成。
       </p>
       <p style="color: #4d4d4f;">
        如果用print结果就是带转义的输出(\”)，直接用cat打印就是标准的JSON串格式。
       </p>
       <p style="color: #4d4d4f;">
        把JSON输出到文件：fin0_out.json, 有2种方法：
       </p>
       <ul style="color: #4d4d4f;">
        <li>
         1. writeLines()
        </li>
        <li>
         2. sink()
        </li>
       </ul>
       <p>
       </p>
       <!-- Crayon Syntax Highlighter v_2.7.2_beta -->
       <div class="crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" id="crayon-576869bd1d836206951855" style=" margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important;">
        <div class="crayon-toolbar" data-settings=" mouseover overlay hide delay" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
         <span class="crayon-title">
         </span>
         <div class="crayon-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
          <div class="crayon-button crayon-nums-button" title="切换是否显示行编号">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-plain-button" title="纯文本显示代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-wrap-button" title="切换自动换行">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-expand-button" title="点击展开代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-copy-button" title="复制代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-popup-button" title="在新窗口中显示代码">
           <div class="crayon-button-icon">
           </div>
          </div>
         </div>
        </div>
        <div class="crayon-info" style="min-height: 16.8px !important; line-height: 16.8px !important;">
        </div>
        <div class="crayon-plain-wrap">
         <textarea class="crayon-plain print-no" data-settings="dblclick" readonly="" style="-moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4; font-size: 12px !important; line-height: 15px !important;" wrap="soft">
          # writeLines
&amp;gt; writeLines(json_str, "fin0_out1.json")

# sink
&amp;gt; sink("fin0_out2.json")
&amp;gt; cat(json_str)
&amp;gt; sink()
         </textarea>
        </div>
        <div class="crayon-main" style="">
         <table class="crayon-table">
          <tbody>
           <tr class="crayon-row">
            <td class="crayon-nums " data-settings="show">
             <div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;">
              <div class="crayon-num" data-line="crayon-576869bd1d836206951855-1">
               1
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d836206951855-2">
               2
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d836206951855-3">
               3
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d836206951855-4">
               4
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d836206951855-5">
               5
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d836206951855-6">
               6
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d836206951855-7">
               7
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d836206951855-8">
               8
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d836206951855-9">
               9
              </div>
             </div>
            </td>
            <td class="crayon-code">
             <div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;">
              <div class="crayon-line" id="crayon-576869bd1d836206951855-1">
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d836206951855-2">
               <span class="crayon-p">
                # writeLines
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d836206951855-3">
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                gt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-e">
                writeLines
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                json_str
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "fin0_out1.json"
               </span>
               <span class="crayon-sy">
                )
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d836206951855-4">
              </div>
              <div class="crayon-line" id="crayon-576869bd1d836206951855-5">
               <span class="crayon-p">
                # sink
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d836206951855-6">
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                gt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-e">
                sink
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-s">
                "fin0_out2.json"
               </span>
               <span class="crayon-sy">
                )
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d836206951855-7">
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                gt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-e">
                cat
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                json_str
               </span>
               <span class="crayon-sy">
                )
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d836206951855-8">
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                gt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-e">
                sink
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-sy">
                )
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d836206951855-9">
              </div>
             </div>
            </td>
           </tr>
          </tbody>
         </table>
        </div>
       </div>
       <!-- [Format Time: 0.0018 seconds] -->
       <p>
       </p>
       <p style="color: #4d4d4f;">
        虽然写法不同，输出结果是一个样的，writeLines最后新建一个空行。
       </p>
       <p>
       </p>
       <!-- Crayon Syntax Highlighter v_2.7.2_beta -->
       <div class="crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" id="crayon-576869bd1d840792471076" style=" margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important;">
        <div class="crayon-toolbar" data-settings=" mouseover overlay hide delay" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
         <span class="crayon-title">
         </span>
         <div class="crayon-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
          <div class="crayon-button crayon-nums-button" title="切换是否显示行编号">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-plain-button" title="纯文本显示代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-wrap-button" title="切换自动换行">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-expand-button" title="点击展开代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-copy-button" title="复制代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-popup-button" title="在新窗口中显示代码">
           <div class="crayon-button-icon">
           </div>
          </div>
         </div>
        </div>
        <div class="crayon-info" style="min-height: 16.8px !important; line-height: 16.8px !important;">
        </div>
        <div class="crayon-plain-wrap">
         <textarea class="crayon-plain print-no" data-settings="dblclick" readonly="" style="-moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4; font-size: 12px !important; line-height: 15px !important;" wrap="soft">
          {"table1":{"time":"130911","data":{"code":["TF1312","TF1403","TF1406"],"rt_time":[130911,130911,130911]}},"table2":{"time":"130911","data":{"contract":["TF1312","TF1312","TF1403"],"jtid":[99,65,21]}}}
         </textarea>
        </div>
        <div class="crayon-main" style="">
         <table class="crayon-table">
          <tbody>
           <tr class="crayon-row">
            <td class="crayon-nums " data-settings="show">
             <div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;">
              <div class="crayon-num" data-line="crayon-576869bd1d840792471076-1">
               1
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d840792471076-2">
               2
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d840792471076-3">
               3
              </div>
             </div>
            </td>
            <td class="crayon-code">
             <div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;">
              <div class="crayon-line" id="crayon-576869bd1d840792471076-1">
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d840792471076-2">
               <span class="crayon-sy">
                {
               </span>
               <span class="crayon-s">
                "table1"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-sy">
                {
               </span>
               <span class="crayon-s">
                "time"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-s">
                "130911"
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-s">
                "data"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-sy">
                {
               </span>
               <span class="crayon-s">
                "code"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-sy">
                [
               </span>
               <span class="crayon-s">
                "TF1312"
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-s">
                "TF1403"
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-s">
                "TF1406"
               </span>
               <span class="crayon-sy">
                ]
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-s">
                "rt_time"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-sy">
                [
               </span>
               <span class="crayon-cn">
                130911
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-cn">
                130911
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-cn">
                130911
               </span>
               <span class="crayon-sy">
                ]
               </span>
               <span class="crayon-sy">
                }
               </span>
               <span class="crayon-sy">
                }
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-s">
                "table2"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-sy">
                {
               </span>
               <span class="crayon-s">
                "time"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-s">
                "130911"
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-s">
                "data"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-sy">
                {
               </span>
               <span class="crayon-s">
                "contract"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-sy">
                [
               </span>
               <span class="crayon-s">
                "TF1312"
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-s">
                "TF1312"
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-s">
                "TF1403"
               </span>
               <span class="crayon-sy">
                ]
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-s">
                "jtid"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-sy">
                [
               </span>
               <span class="crayon-cn">
                99
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-cn">
                65
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-cn">
                21
               </span>
               <span class="crayon-sy">
                ]
               </span>
               <span class="crayon-sy">
                }
               </span>
               <span class="crayon-sy">
                }
               </span>
               <span class="crayon-sy">
                }
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d840792471076-3">
              </div>
             </div>
            </td>
           </tr>
          </tbody>
         </table>
        </div>
       </div>
       <!-- [Format Time: 0.0025 seconds] -->
       <p>
       </p>
       <p style="color: #4d4d4f;">
        <strong>
         4). C库和R库转型 性能测试
        </strong>
        <br/>
        我们对fromJSON进行性能测试
       </p>
       <p>
       </p>
       <!-- Crayon Syntax Highlighter v_2.7.2_beta -->
       <div class="crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" id="crayon-576869bd1d846583820669" style=" margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important;">
        <div class="crayon-toolbar" data-settings=" mouseover overlay hide delay" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
         <span class="crayon-title">
         </span>
         <div class="crayon-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
          <div class="crayon-button crayon-nums-button" title="切换是否显示行编号">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-plain-button" title="纯文本显示代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-wrap-button" title="切换自动换行">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-expand-button" title="点击展开代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-copy-button" title="复制代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-popup-button" title="在新窗口中显示代码">
           <div class="crayon-button-icon">
           </div>
          </div>
         </div>
        </div>
        <div class="crayon-info" style="min-height: 16.8px !important; line-height: 16.8px !important;">
        </div>
        <div class="crayon-plain-wrap">
         <textarea class="crayon-plain print-no" data-settings="dblclick" readonly="" style="-moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4; font-size: 12px !important; line-height: 15px !important;" wrap="soft">
          &amp;gt; system.time( y &amp;lt;- fromJSON(json_str,method="C") )
用户 系统 流逝 
   0    0    0 
&amp;gt; system.time( y2 &amp;lt;- fromJSON(json_str,method = "R") )
用户 系统 流逝 
0.02 0.00 0.02
&amp;gt; system.time( y3 &amp;lt;- fromJSON(json_str) )
用户 系统 流逝 
   0    0    0
         </textarea>
        </div>
        <div class="crayon-main" style="">
         <table class="crayon-table">
          <tbody>
           <tr class="crayon-row">
            <td class="crayon-nums " data-settings="show">
             <div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;">
              <div class="crayon-num" data-line="crayon-576869bd1d846583820669-1">
               1
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d846583820669-2">
               2
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d846583820669-3">
               3
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d846583820669-4">
               4
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d846583820669-5">
               5
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d846583820669-6">
               6
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d846583820669-7">
               7
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d846583820669-8">
               8
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d846583820669-9">
               9
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d846583820669-10">
               10
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d846583820669-11">
               11
              </div>
             </div>
            </td>
            <td class="crayon-code">
             <div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;">
              <div class="crayon-line" id="crayon-576869bd1d846583820669-1">
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d846583820669-2">
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                gt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                system
               </span>
               <span class="crayon-sy">
                .
               </span>
               <span class="crayon-e">
                time
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                y
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                lt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-o">
                -
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-e">
                fromJSON
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                json_str
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-v">
                method
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "C"
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                )
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d846583820669-3">
               用户
               <span class="crayon-h">
               </span>
               系统
               <span class="crayon-h">
               </span>
               流逝
               <span class="crayon-h">
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d846583820669-4">
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0
               </span>
               <span class="crayon-h">
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d846583820669-5">
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                gt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                system
               </span>
               <span class="crayon-sy">
                .
               </span>
               <span class="crayon-e">
                time
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                y2
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                lt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-o">
                -
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-e">
                fromJSON
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                json_str
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-v">
                method
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "R"
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                )
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d846583820669-6">
               用户
               <span class="crayon-h">
               </span>
               系统
               <span class="crayon-h">
               </span>
               流逝
               <span class="crayon-h">
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d846583820669-7">
               <span class="crayon-cn">
                0.02
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0.00
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0.02
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d846583820669-8">
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                gt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                system
               </span>
               <span class="crayon-sy">
                .
               </span>
               <span class="crayon-e">
                time
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                y3
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                lt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-o">
                -
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-e">
                fromJSON
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                json_str
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                )
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d846583820669-9">
               用户
               <span class="crayon-h">
               </span>
               系统
               <span class="crayon-h">
               </span>
               流逝
               <span class="crayon-h">
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d846583820669-10">
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0
               </span>
               <span class="crayon-h">
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d846583820669-11">
              </div>
             </div>
            </td>
           </tr>
          </tbody>
         </table>
        </div>
       </div>
       <!-- [Format Time: 0.0219 seconds] -->
       <p>
       </p>
       <p style="color: #4d4d4f;">
        我们可以看到，C库比R库会快，因为数据量很小，所以0.02并不明显。当JSON串很大的时候，这个差距就会变得相当的大了。
       </p>
       <p style="color: #4d4d4f;">
        另外，fromJSON默认使用的C库的方法，所以我们平时处理不用加method=’C’的参数。
       </p>
       <p style="color: #4d4d4f;">
        toJSON的性能测试
       </p>
       <p>
       </p>
       <!-- Crayon Syntax Highlighter v_2.7.2_beta -->
       <div class="crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" id="crayon-576869bd1d84d062007906" style=" margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important;">
        <div class="crayon-toolbar" data-settings=" mouseover overlay hide delay" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
         <span class="crayon-title">
         </span>
         <div class="crayon-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
          <div class="crayon-button crayon-nums-button" title="切换是否显示行编号">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-plain-button" title="纯文本显示代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-wrap-button" title="切换自动换行">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-expand-button" title="点击展开代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-copy-button" title="复制代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-popup-button" title="在新窗口中显示代码">
           <div class="crayon-button-icon">
           </div>
          </div>
         </div>
        </div>
        <div class="crayon-info" style="min-height: 16.8px !important; line-height: 16.8px !important;">
        </div>
        <div class="crayon-plain-wrap">
         <textarea class="crayon-plain print-no" data-settings="dblclick" readonly="" style="-moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4; font-size: 12px !important; line-height: 15px !important;" wrap="soft">
          &amp;gt; system.time( y &amp;lt;- toJSON(json_data,method="C") )
用户 系统 流逝 
   0    0    0 
&amp;gt; system.time( y2 &amp;lt;- toJSON(json_data,method = "R") )
用户 系统 流逝 
0.02 0.00 0.01 
&amp;gt; system.time( y3 &amp;lt;- toJSON(json_data) )
用户 系统 流逝 
   0    0    0
         </textarea>
        </div>
        <div class="crayon-main" style="">
         <table class="crayon-table">
          <tbody>
           <tr class="crayon-row">
            <td class="crayon-nums " data-settings="show">
             <div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;">
              <div class="crayon-num" data-line="crayon-576869bd1d84d062007906-1">
               1
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d84d062007906-2">
               2
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d84d062007906-3">
               3
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d84d062007906-4">
               4
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d84d062007906-5">
               5
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d84d062007906-6">
               6
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d84d062007906-7">
               7
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d84d062007906-8">
               8
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d84d062007906-9">
               9
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d84d062007906-10">
               10
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d84d062007906-11">
               11
              </div>
             </div>
            </td>
            <td class="crayon-code">
             <div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;">
              <div class="crayon-line" id="crayon-576869bd1d84d062007906-1">
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d84d062007906-2">
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                gt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                system
               </span>
               <span class="crayon-sy">
                .
               </span>
               <span class="crayon-e">
                time
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                y
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                lt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-o">
                -
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-e">
                toJSON
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                json_data
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-v">
                method
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "C"
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                )
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d84d062007906-3">
               用户
               <span class="crayon-h">
               </span>
               系统
               <span class="crayon-h">
               </span>
               流逝
               <span class="crayon-h">
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d84d062007906-4">
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0
               </span>
               <span class="crayon-h">
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d84d062007906-5">
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                gt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                system
               </span>
               <span class="crayon-sy">
                .
               </span>
               <span class="crayon-e">
                time
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                y2
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                lt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-o">
                -
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-e">
                toJSON
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                json_data
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-v">
                method
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "R"
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                )
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d84d062007906-6">
               用户
               <span class="crayon-h">
               </span>
               系统
               <span class="crayon-h">
               </span>
               流逝
               <span class="crayon-h">
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d84d062007906-7">
               <span class="crayon-cn">
                0.02
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0.00
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0.01
               </span>
               <span class="crayon-h">
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d84d062007906-8">
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                gt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                system
               </span>
               <span class="crayon-sy">
                .
               </span>
               <span class="crayon-e">
                time
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                y3
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                lt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-o">
                -
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-e">
                toJSON
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                json_data
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                )
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d84d062007906-9">
               用户
               <span class="crayon-h">
               </span>
               系统
               <span class="crayon-h">
               </span>
               流逝
               <span class="crayon-h">
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d84d062007906-10">
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0
               </span>
               <span class="crayon-h">
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d84d062007906-11">
              </div>
             </div>
            </td>
           </tr>
          </tbody>
         </table>
        </div>
       </div>
       <!-- [Format Time: 0.0049 seconds] -->
       <p>
       </p>
       <p style="color: #4d4d4f;">
        同上的解释。
       </p>
       <h2 style="color: #434343;">
        2. RJSONIO包介绍
       </h2>
       <p style="color: #4d4d4f;">
        RJSONIO包，提供了2个主要的操作，把JSON串反序列化成R对象，把R对象序列化成JSON串，两个主要的函数fromJSON(), toJSON()，还包括几个辅助函数asJSVars(), basicJSONHandler(), Bob(), isValidJSON(), readJSONStream()。
       </p>
       <p style="color: #4d4d4f;">
        RJSONIO包开发，是解决了rjson包序列化大对象慢的问题。RJSONIO依赖于底层的C语言类库libjson。
       </p>
       <p style="color: #4d4d4f;">
        <strong>
         1). 安装和加载RJSONIO
        </strong>
       </p>
       <p>
       </p>
       <!-- Crayon Syntax Highlighter v_2.7.2_beta -->
       <div class="crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" id="crayon-576869bd1d854196679007" style=" margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important;">
        <div class="crayon-toolbar" data-settings=" mouseover overlay hide delay" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
         <span class="crayon-title">
         </span>
         <div class="crayon-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
          <div class="crayon-button crayon-nums-button" title="切换是否显示行编号">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-plain-button" title="纯文本显示代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-wrap-button" title="切换自动换行">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-expand-button" title="点击展开代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-copy-button" title="复制代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-popup-button" title="在新窗口中显示代码">
           <div class="crayon-button-icon">
           </div>
          </div>
         </div>
        </div>
        <div class="crayon-info" style="min-height: 16.8px !important; line-height: 16.8px !important;">
        </div>
        <div class="crayon-plain-wrap">
         <textarea class="crayon-plain print-no" data-settings="dblclick" readonly="" style="-moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4; font-size: 12px !important; line-height: 15px !important;" wrap="soft">
          install.packages("RJSONIO")
library(RJSONIO)
         </textarea>
        </div>
        <div class="crayon-main" style="">
         <table class="crayon-table">
          <tbody>
           <tr class="crayon-row">
            <td class="crayon-nums " data-settings="show">
             <div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;">
              <div class="crayon-num" data-line="crayon-576869bd1d854196679007-1">
               1
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d854196679007-2">
               2
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d854196679007-3">
               3
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d854196679007-4">
               4
              </div>
             </div>
            </td>
            <td class="crayon-code">
             <div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;">
              <div class="crayon-line" id="crayon-576869bd1d854196679007-1">
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d854196679007-2">
               <span class="crayon-v">
                install
               </span>
               <span class="crayon-sy">
                .
               </span>
               <span class="crayon-e">
                packages
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-s">
                "RJSONIO"
               </span>
               <span class="crayon-sy">
                )
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d854196679007-3">
               <span class="crayon-e">
                library
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                RJSONIO
               </span>
               <span class="crayon-sy">
                )
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d854196679007-4">
              </div>
             </div>
            </td>
           </tr>
          </tbody>
         </table>
        </div>
       </div>
       <!-- [Format Time: 0.0008 seconds] -->
       <p>
       </p>
       <p style="color: #4d4d4f;">
        <strong>
         2). fromJSON() 从JSON到R
        </strong>
        <br/>
        同rjson一样，测试fromJSON函数
       </p>
       <p>
       </p>
       <!-- Crayon Syntax Highlighter v_2.7.2_beta -->
       <div class="crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" id="crayon-576869bd1d859188938031" style=" margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important;">
        <div class="crayon-toolbar" data-settings=" mouseover overlay hide delay" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
         <span class="crayon-title">
         </span>
         <div class="crayon-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
          <div class="crayon-button crayon-nums-button" title="切换是否显示行编号">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-plain-button" title="纯文本显示代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-wrap-button" title="切换自动换行">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-expand-button" title="点击展开代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-copy-button" title="复制代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-popup-button" title="在新窗口中显示代码">
           <div class="crayon-button-icon">
           </div>
          </div>
         </div>
        </div>
        <div class="crayon-info" style="min-height: 16.8px !important; line-height: 16.8px !important;">
        </div>
        <div class="crayon-plain-wrap">
         <textarea class="crayon-plain print-no" data-settings="dblclick" readonly="" style="-moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4; font-size: 12px !important; line-height: 15px !important;" wrap="soft">
          &amp;gt; json_data &amp;lt;- fromJSON(paste(readLines("fin0.json"), collapse=""))
&amp;gt; json_data
$table1
$table1$time
[1] "130911"

$table1$data
$table1$data$code
[1] "TF1312" "TF1403" "TF1406"

$table1$data$rt_time
[1] 130911 130911 130911

$table2
$table2$time
[1] "130911"

$table2$data
$table2$data$contract
[1] "TF1312" "TF1312" "TF1403"

$table2$data$jtid
[1] 99 65 21
         </textarea>
        </div>
        <div class="crayon-main" style="">
         <table class="crayon-table">
          <tbody>
           <tr class="crayon-row">
            <td class="crayon-nums " data-settings="show">
             <div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;">
              <div class="crayon-num" data-line="crayon-576869bd1d859188938031-1">
               1
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d859188938031-2">
               2
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d859188938031-3">
               3
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d859188938031-4">
               4
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d859188938031-5">
               5
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d859188938031-6">
               6
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d859188938031-7">
               7
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d859188938031-8">
               8
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d859188938031-9">
               9
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d859188938031-10">
               10
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d859188938031-11">
               11
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d859188938031-12">
               12
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d859188938031-13">
               13
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d859188938031-14">
               14
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d859188938031-15">
               15
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d859188938031-16">
               16
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d859188938031-17">
               17
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d859188938031-18">
               18
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d859188938031-19">
               19
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d859188938031-20">
               20
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d859188938031-21">
               21
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d859188938031-22">
               22
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d859188938031-23">
               23
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d859188938031-24">
               24
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d859188938031-25">
               25
              </div>
             </div>
            </td>
            <td class="crayon-code">
             <div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;">
              <div class="crayon-line" id="crayon-576869bd1d859188938031-1">
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d859188938031-2">
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                gt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                json_data
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                lt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-o">
                -
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-e">
                fromJSON
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-e">
                paste
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-e">
                readLines
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-s">
                "fin0.json"
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                collapse
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                ""
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-sy">
                )
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d859188938031-3">
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                gt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                json
               </span>
               <span class="crayon-sy">
                _
               </span>
               data
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d859188938031-4">
               <span class="crayon-sy">
                $
               </span>
               <span class="crayon-i">
                table1
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d859188938031-5">
               <span class="crayon-sy">
                $
               </span>
               <span class="crayon-v">
                table1
               </span>
               <span class="crayon-sy">
                $
               </span>
               <span class="crayon-i">
                time
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d859188938031-6">
               <span class="crayon-sy">
                [
               </span>
               <span class="crayon-cn">
                1
               </span>
               <span class="crayon-sy">
                ]
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "130911"
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d859188938031-7">
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d859188938031-8">
               <span class="crayon-sy">
                $
               </span>
               <span class="crayon-v">
                table1
               </span>
               <span class="crayon-sy">
                $
               </span>
               <span class="crayon-i">
                data
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d859188938031-9">
               <span class="crayon-sy">
                $
               </span>
               <span class="crayon-v">
                table1
               </span>
               <span class="crayon-sy">
                $
               </span>
               <span class="crayon-v">
                data
               </span>
               <span class="crayon-sy">
                $
               </span>
               <span class="crayon-i">
                code
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d859188938031-10">
               <span class="crayon-sy">
                [
               </span>
               <span class="crayon-cn">
                1
               </span>
               <span class="crayon-sy">
                ]
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "TF1312"
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "TF1403"
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "TF1406"
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d859188938031-11">
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d859188938031-12">
               <span class="crayon-sy">
                $
               </span>
               <span class="crayon-v">
                table1
               </span>
               <span class="crayon-sy">
                $
               </span>
               <span class="crayon-v">
                data
               </span>
               <span class="crayon-sy">
                $
               </span>
               <span class="crayon-v">
                rt
               </span>
               <span class="crayon-sy">
                _
               </span>
               time
              </div>
              <div class="crayon-line" id="crayon-576869bd1d859188938031-13">
               <span class="crayon-sy">
                [
               </span>
               <span class="crayon-cn">
                1
               </span>
               <span class="crayon-sy">
                ]
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                130911
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                130911
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                130911
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d859188938031-14">
              </div>
              <div class="crayon-line" id="crayon-576869bd1d859188938031-15">
               <span class="crayon-sy">
                $
               </span>
               <span class="crayon-i">
                table2
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d859188938031-16">
               <span class="crayon-sy">
                $
               </span>
               <span class="crayon-v">
                table2
               </span>
               <span class="crayon-sy">
                $
               </span>
               <span class="crayon-i">
                time
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d859188938031-17">
               <span class="crayon-sy">
                [
               </span>
               <span class="crayon-cn">
                1
               </span>
               <span class="crayon-sy">
                ]
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "130911"
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d859188938031-18">
              </div>
              <div class="crayon-line" id="crayon-576869bd1d859188938031-19">
               <span class="crayon-sy">
                $
               </span>
               <span class="crayon-v">
                table2
               </span>
               <span class="crayon-sy">
                $
               </span>
               <span class="crayon-i">
                data
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d859188938031-20">
               <span class="crayon-sy">
                $
               </span>
               <span class="crayon-v">
                table2
               </span>
               <span class="crayon-sy">
                $
               </span>
               <span class="crayon-v">
                data
               </span>
               <span class="crayon-sy">
                $
               </span>
               <span class="crayon-i">
                contract
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d859188938031-21">
               <span class="crayon-sy">
                [
               </span>
               <span class="crayon-cn">
                1
               </span>
               <span class="crayon-sy">
                ]
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "TF1312"
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "TF1312"
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "TF1403"
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d859188938031-22">
              </div>
              <div class="crayon-line" id="crayon-576869bd1d859188938031-23">
               <span class="crayon-sy">
                $
               </span>
               <span class="crayon-v">
                table2
               </span>
               <span class="crayon-sy">
                $
               </span>
               <span class="crayon-v">
                data
               </span>
               <span class="crayon-sy">
                $
               </span>
               <span class="crayon-i">
                jtid
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d859188938031-24">
               <span class="crayon-sy">
                [
               </span>
               <span class="crayon-cn">
                1
               </span>
               <span class="crayon-sy">
                ]
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                99
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                65
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                21
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d859188938031-25">
              </div>
             </div>
            </td>
           </tr>
          </tbody>
         </table>
        </div>
       </div>
       <!-- [Format Time: 0.0152 seconds] -->
       <p>
       </p>
       <p style="color: #4d4d4f;">
        我们发现与 rjson的解析结果是一样，都是基于list的
       </p>
       <p style="color: #4d4d4f;">
        取叶子节点：
       </p>
       <p>
       </p>
       <!-- Crayon Syntax Highlighter v_2.7.2_beta -->
       <div class="crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" id="crayon-576869bd1d860177178160" style=" margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important;">
        <div class="crayon-toolbar" data-settings=" mouseover overlay hide delay" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
         <span class="crayon-title">
         </span>
         <div class="crayon-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
          <div class="crayon-button crayon-nums-button" title="切换是否显示行编号">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-plain-button" title="纯文本显示代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-wrap-button" title="切换自动换行">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-expand-button" title="点击展开代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-copy-button" title="复制代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-popup-button" title="在新窗口中显示代码">
           <div class="crayon-button-icon">
           </div>
          </div>
         </div>
        </div>
        <div class="crayon-info" style="min-height: 16.8px !important; line-height: 16.8px !important;">
        </div>
        <div class="crayon-plain-wrap">
         <textarea class="crayon-plain print-no" data-settings="dblclick" readonly="" style="-moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4; font-size: 12px !important; line-height: 15px !important;" wrap="soft">
          &amp;gt; json_data$table1$data$code
[1] "TF1312" "TF1403" "TF1406"

&amp;gt; json_data$table1$data$code[1]
[1] "TF1312"
         </textarea>
        </div>
        <div class="crayon-main" style="">
         <table class="crayon-table">
          <tbody>
           <tr class="crayon-row">
            <td class="crayon-nums " data-settings="show">
             <div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;">
              <div class="crayon-num" data-line="crayon-576869bd1d860177178160-1">
               1
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d860177178160-2">
               2
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d860177178160-3">
               3
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d860177178160-4">
               4
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d860177178160-5">
               5
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d860177178160-6">
               6
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d860177178160-7">
               7
              </div>
             </div>
            </td>
            <td class="crayon-code">
             <div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;">
              <div class="crayon-line" id="crayon-576869bd1d860177178160-1">
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d860177178160-2">
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                gt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                json_data
               </span>
               <span class="crayon-sy">
                $
               </span>
               <span class="crayon-v">
                table1
               </span>
               <span class="crayon-sy">
                $
               </span>
               <span class="crayon-v">
                data
               </span>
               <span class="crayon-sy">
                $
               </span>
               <span class="crayon-i">
                code
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d860177178160-3">
               <span class="crayon-sy">
                [
               </span>
               <span class="crayon-cn">
                1
               </span>
               <span class="crayon-sy">
                ]
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "TF1312"
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "TF1403"
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "TF1406"
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d860177178160-4">
              </div>
              <div class="crayon-line" id="crayon-576869bd1d860177178160-5">
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                gt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                json_data
               </span>
               <span class="crayon-sy">
                $
               </span>
               <span class="crayon-v">
                table1
               </span>
               <span class="crayon-sy">
                $
               </span>
               <span class="crayon-v">
                data
               </span>
               <span class="crayon-sy">
                $
               </span>
               <span class="crayon-v">
                code
               </span>
               <span class="crayon-sy">
                [
               </span>
               <span class="crayon-cn">
                1
               </span>
               <span class="crayon-sy">
                ]
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d860177178160-6">
               <span class="crayon-sy">
                [
               </span>
               <span class="crayon-cn">
                1
               </span>
               <span class="crayon-sy">
                ]
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "TF1312"
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d860177178160-7">
              </div>
             </div>
            </td>
           </tr>
          </tbody>
         </table>
        </div>
       </div>
       <!-- [Format Time: 0.0100 seconds] -->
       <p>
       </p>
       <p style="color: #4d4d4f;">
        <strong>
         3). toJSON() 从R到JSON
        </strong>
        <br/>
        toJSON测试
       </p>
       <p>
       </p>
       <!-- Crayon Syntax Highlighter v_2.7.2_beta -->
       <div class="crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" id="crayon-576869bd1d866700991797" style=" margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important;">
        <div class="crayon-toolbar" data-settings=" mouseover overlay hide delay" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
         <span class="crayon-title">
         </span>
         <div class="crayon-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
          <div class="crayon-button crayon-nums-button" title="切换是否显示行编号">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-plain-button" title="纯文本显示代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-wrap-button" title="切换自动换行">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-expand-button" title="点击展开代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-copy-button" title="复制代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-popup-button" title="在新窗口中显示代码">
           <div class="crayon-button-icon">
           </div>
          </div>
         </div>
        </div>
        <div class="crayon-info" style="min-height: 16.8px !important; line-height: 16.8px !important;">
        </div>
        <div class="crayon-plain-wrap">
         <textarea class="crayon-plain print-no" data-settings="dblclick" readonly="" style="-moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4; font-size: 12px !important; line-height: 15px !important;" wrap="soft">
          &amp;gt; json_str&amp;lt;-toJSON(json_data)

&amp;gt; print(json_str)
[1] "{\n \"table1\": {\n \"time\": \"130911\",\n\"data\": {\n \"code\": [ \"TF1312\", \"TF1403\", \"TF1406\" ],\n\"rt_time\": [ 1.3091e+05, 1.3091e+05, 1.3091e+05 ] \n} \n},\n\"table2\": {\n \"time\": \"130911\",\n\"data\": {\n \"contract\": [ \"TF1312\", \"TF1312\", \"TF1403\" ],\n\"jtid\": [     99,     65,     21 ] \n} \n} \n}"

&amp;gt; cat(json_str)
{
 "table1": {
 "time": "130911",
"data": {
 "code": [ "TF1312", "TF1403", "TF1406" ],
"rt_time": [ 1.3091e+05, 1.3091e+05, 1.3091e+05 ] 
} 
},
"table2": {
 "time": "130911",
"data": {
 "contract": [ "TF1312", "TF1312", "TF1403" ],
"jtid": [     99,     65,     21 ] 
} 
} 
}
         </textarea>
        </div>
        <div class="crayon-main" style="">
         <table class="crayon-table">
          <tbody>
           <tr class="crayon-row">
            <td class="crayon-nums " data-settings="show">
             <div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;">
              <div class="crayon-num" data-line="crayon-576869bd1d866700991797-1">
               1
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d866700991797-2">
               2
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d866700991797-3">
               3
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d866700991797-4">
               4
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d866700991797-5">
               5
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d866700991797-6">
               6
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d866700991797-7">
               7
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d866700991797-8">
               8
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d866700991797-9">
               9
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d866700991797-10">
               10
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d866700991797-11">
               11
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d866700991797-12">
               12
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d866700991797-13">
               13
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d866700991797-14">
               14
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d866700991797-15">
               15
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d866700991797-16">
               16
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d866700991797-17">
               17
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d866700991797-18">
               18
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d866700991797-19">
               19
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d866700991797-20">
               20
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d866700991797-21">
               21
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d866700991797-22">
               22
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d866700991797-23">
               23
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d866700991797-24">
               24
              </div>
             </div>
            </td>
            <td class="crayon-code">
             <div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;">
              <div class="crayon-line" id="crayon-576869bd1d866700991797-1">
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d866700991797-2">
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                gt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                json_str
               </span>
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                lt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-o">
                -
               </span>
               <span class="crayon-e">
                toJSON
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                json_data
               </span>
               <span class="crayon-sy">
                )
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d866700991797-3">
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d866700991797-4">
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                gt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-e">
                print
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                json_str
               </span>
               <span class="crayon-sy">
                )
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d866700991797-5">
               <span class="crayon-sy">
                [
               </span>
               <span class="crayon-cn">
                1
               </span>
               <span class="crayon-sy">
                ]
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "{\n \"table1\": {\n \"time\": \"130911\",\n\"data\": {\n \"code\": [ \"TF1312\", \"TF1403\", \"TF1406\" ],\n\"rt_time\": [ 1.3091e+05, 1.3091e+05, 1.3091e+05 ] \n} \n},\n\"table2\": {\n \"time\": \"130911\",\n\"data\": {\n \"contract\": [ \"TF1312\", \"TF1312\", \"TF1403\" ],\n\"jtid\": [     99,     65,     21 ] \n} \n} \n}"
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d866700991797-6">
              </div>
              <div class="crayon-line" id="crayon-576869bd1d866700991797-7">
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                gt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-e">
                cat
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                json_str
               </span>
               <span class="crayon-sy">
                )
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d866700991797-8">
               <span class="crayon-sy">
                {
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d866700991797-9">
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "table1"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                {
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d866700991797-10">
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "time"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "130911"
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d866700991797-11">
               <span class="crayon-s">
                "data"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                {
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d866700991797-12">
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "code"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                [
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "TF1312"
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "TF1403"
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "TF1406"
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                ]
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d866700991797-13">
               <span class="crayon-s">
                "rt_time"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                [
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                1.3091e
               </span>
               <span class="crayon-o">
                +
               </span>
               <span class="crayon-cn">
                05
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                1.3091e
               </span>
               <span class="crayon-o">
                +
               </span>
               <span class="crayon-cn">
                05
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                1.3091e
               </span>
               <span class="crayon-o">
                +
               </span>
               <span class="crayon-cn">
                05
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                ]
               </span>
               <span class="crayon-h">
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d866700991797-14">
               <span class="crayon-sy">
                }
               </span>
               <span class="crayon-h">
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d866700991797-15">
               <span class="crayon-sy">
                }
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d866700991797-16">
               <span class="crayon-s">
                "table2"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                {
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d866700991797-17">
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "time"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "130911"
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d866700991797-18">
               <span class="crayon-s">
                "data"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                {
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d866700991797-19">
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "contract"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                [
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "TF1312"
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "TF1312"
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "TF1403"
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                ]
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d866700991797-20">
               <span class="crayon-s">
                "jtid"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                [
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                99
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                65
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                21
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                ]
               </span>
               <span class="crayon-h">
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d866700991797-21">
               <span class="crayon-sy">
                }
               </span>
               <span class="crayon-h">
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d866700991797-22">
               <span class="crayon-sy">
                }
               </span>
               <span class="crayon-h">
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d866700991797-23">
               <span class="crayon-sy">
                }
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d866700991797-24">
              </div>
             </div>
            </td>
           </tr>
          </tbody>
         </table>
        </div>
       </div>
       <!-- [Format Time: 0.0176 seconds] -->
       <p>
       </p>
       <p style="color: #4d4d4f;">
        toJSON函数输出与rjson是不一样的，这个输出是格式化的。
       </p>
       <p style="color: #4d4d4f;">
        输出到文件：
       </p>
       <p>
       </p>
       <!-- Crayon Syntax Highlighter v_2.7.2_beta -->
       <div class="crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" id="crayon-576869bd1d86e781964813" style=" margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important;">
        <div class="crayon-toolbar" data-settings=" mouseover overlay hide delay" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
         <span class="crayon-title">
         </span>
         <div class="crayon-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
          <div class="crayon-button crayon-nums-button" title="切换是否显示行编号">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-plain-button" title="纯文本显示代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-wrap-button" title="切换自动换行">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-expand-button" title="点击展开代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-copy-button" title="复制代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-popup-button" title="在新窗口中显示代码">
           <div class="crayon-button-icon">
           </div>
          </div>
         </div>
        </div>
        <div class="crayon-info" style="min-height: 16.8px !important; line-height: 16.8px !important;">
        </div>
        <div class="crayon-plain-wrap">
         <textarea class="crayon-plain print-no" data-settings="dblclick" readonly="" style="-moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4; font-size: 12px !important; line-height: 15px !important;" wrap="soft">
          &amp;gt; writeLines(json_str, "fin0_io.json")
         </textarea>
        </div>
        <div class="crayon-main" style="">
         <table class="crayon-table">
          <tbody>
           <tr class="crayon-row">
            <td class="crayon-nums " data-settings="show">
             <div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;">
              <div class="crayon-num" data-line="crayon-576869bd1d86e781964813-1">
               1
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d86e781964813-2">
               2
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d86e781964813-3">
               3
              </div>
             </div>
            </td>
            <td class="crayon-code">
             <div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;">
              <div class="crayon-line" id="crayon-576869bd1d86e781964813-1">
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d86e781964813-2">
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                gt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-e">
                writeLines
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                json_str
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "fin0_io.json"
               </span>
               <span class="crayon-sy">
                )
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d86e781964813-3">
              </div>
             </div>
            </td>
           </tr>
          </tbody>
         </table>
        </div>
       </div>
       <!-- [Format Time: 0.0009 seconds] -->
       <p>
       </p>
       <p style="color: #4d4d4f;">
        文件结果：
       </p>
       <p>
       </p>
       <!-- Crayon Syntax Highlighter v_2.7.2_beta -->
       <div class="crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" id="crayon-576869bd1d874727878368" style=" margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important;">
        <div class="crayon-toolbar" data-settings=" mouseover overlay hide delay" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
         <span class="crayon-title">
         </span>
         <div class="crayon-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
          <div class="crayon-button crayon-nums-button" title="切换是否显示行编号">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-plain-button" title="纯文本显示代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-wrap-button" title="切换自动换行">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-expand-button" title="点击展开代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-copy-button" title="复制代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-popup-button" title="在新窗口中显示代码">
           <div class="crayon-button-icon">
           </div>
          </div>
         </div>
        </div>
        <div class="crayon-info" style="min-height: 16.8px !important; line-height: 16.8px !important;">
        </div>
        <div class="crayon-plain-wrap">
         <textarea class="crayon-plain print-no" data-settings="dblclick" readonly="" style="-moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4; font-size: 12px !important; line-height: 15px !important;" wrap="soft">
          {
 "table1": {
 "time": "130911",
"data": {
 "code": [ "TF1312", "TF1403", "TF1406" ],
"rt_time": [ 1.3091e+05, 1.3091e+05, 1.3091e+05 ] 
} 
},
"table2": {
 "time": "130911",
"data": {
 "contract": [ "TF1312", "TF1312", "TF1403" ],
"jtid": [     99,     65,     21 ] 
} 
} 
}
         </textarea>
        </div>
        <div class="crayon-main" style="">
         <table class="crayon-table">
          <tbody>
           <tr class="crayon-row">
            <td class="crayon-nums " data-settings="show">
             <div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;">
              <div class="crayon-num" data-line="crayon-576869bd1d874727878368-1">
               1
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d874727878368-2">
               2
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d874727878368-3">
               3
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d874727878368-4">
               4
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d874727878368-5">
               5
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d874727878368-6">
               6
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d874727878368-7">
               7
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d874727878368-8">
               8
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d874727878368-9">
               9
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d874727878368-10">
               10
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d874727878368-11">
               11
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d874727878368-12">
               12
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d874727878368-13">
               13
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d874727878368-14">
               14
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d874727878368-15">
               15
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d874727878368-16">
               16
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d874727878368-17">
               17
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d874727878368-18">
               18
              </div>
             </div>
            </td>
            <td class="crayon-code">
             <div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;">
              <div class="crayon-line" id="crayon-576869bd1d874727878368-1">
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d874727878368-2">
               <span class="crayon-sy">
                {
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d874727878368-3">
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "table1"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                {
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d874727878368-4">
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "time"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "130911"
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d874727878368-5">
               <span class="crayon-s">
                "data"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                {
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d874727878368-6">
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "code"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                [
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "TF1312"
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "TF1403"
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "TF1406"
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                ]
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d874727878368-7">
               <span class="crayon-s">
                "rt_time"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                [
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                1.3091e
               </span>
               <span class="crayon-o">
                +
               </span>
               <span class="crayon-cn">
                05
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                1.3091e
               </span>
               <span class="crayon-o">
                +
               </span>
               <span class="crayon-cn">
                05
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                1.3091e
               </span>
               <span class="crayon-o">
                +
               </span>
               <span class="crayon-cn">
                05
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                ]
               </span>
               <span class="crayon-h">
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d874727878368-8">
               <span class="crayon-sy">
                }
               </span>
               <span class="crayon-h">
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d874727878368-9">
               <span class="crayon-sy">
                }
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d874727878368-10">
               <span class="crayon-s">
                "table2"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                {
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d874727878368-11">
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "time"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "130911"
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d874727878368-12">
               <span class="crayon-s">
                "data"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                {
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d874727878368-13">
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "contract"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                [
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "TF1312"
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "TF1312"
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "TF1403"
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                ]
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d874727878368-14">
               <span class="crayon-s">
                "jtid"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                [
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                99
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                65
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                21
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                ]
               </span>
               <span class="crayon-h">
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d874727878368-15">
               <span class="crayon-sy">
                }
               </span>
               <span class="crayon-h">
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d874727878368-16">
               <span class="crayon-sy">
                }
               </span>
               <span class="crayon-h">
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d874727878368-17">
               <span class="crayon-sy">
                }
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d874727878368-18">
              </div>
             </div>
            </td>
           </tr>
          </tbody>
         </table>
        </div>
       </div>
       <!-- [Format Time: 0.0133 seconds] -->
       <p>
       </p>
       <p style="color: #4d4d4f;">
        <strong>
         4). isValidJSON() 验证JSON是否合法
        </strong>
        <br/>
        验证JSON的格式，是否合法。
       </p>
       <p>
       </p>
       <!-- Crayon Syntax Highlighter v_2.7.2_beta -->
       <div class="crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" id="crayon-576869bd1d87a459753016" style=" margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important;">
        <div class="crayon-toolbar" data-settings=" mouseover overlay hide delay" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
         <span class="crayon-title">
         </span>
         <div class="crayon-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
          <div class="crayon-button crayon-nums-button" title="切换是否显示行编号">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-plain-button" title="纯文本显示代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-wrap-button" title="切换自动换行">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-expand-button" title="点击展开代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-copy-button" title="复制代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-popup-button" title="在新窗口中显示代码">
           <div class="crayon-button-icon">
           </div>
          </div>
         </div>
        </div>
        <div class="crayon-info" style="min-height: 16.8px !important; line-height: 16.8px !important;">
        </div>
        <div class="crayon-plain-wrap">
         <textarea class="crayon-plain print-no" data-settings="dblclick" readonly="" style="-moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4; font-size: 12px !important; line-height: 15px !important;" wrap="soft">
          &amp;gt; isValidJSON(json_str)
Error in file(con, "r") : cannot open the connection

&amp;gt; isValidJSON(json_str,TRUE)
[1] TRUE

&amp;gt; isValidJSON(I('{"foo" : "bar"}'))
[1] TRUE
&amp;gt; isValidJSON(I('{foo : "bar"}'))
[1] FALSE
         </textarea>
        </div>
        <div class="crayon-main" style="">
         <table class="crayon-table">
          <tbody>
           <tr class="crayon-row">
            <td class="crayon-nums " data-settings="show">
             <div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;">
              <div class="crayon-num" data-line="crayon-576869bd1d87a459753016-1">
               1
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d87a459753016-2">
               2
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d87a459753016-3">
               3
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d87a459753016-4">
               4
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d87a459753016-5">
               5
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d87a459753016-6">
               6
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d87a459753016-7">
               7
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d87a459753016-8">
               8
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d87a459753016-9">
               9
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d87a459753016-10">
               10
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d87a459753016-11">
               11
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d87a459753016-12">
               12
              </div>
             </div>
            </td>
            <td class="crayon-code">
             <div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;">
              <div class="crayon-line" id="crayon-576869bd1d87a459753016-1">
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d87a459753016-2">
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                gt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-e">
                isValidJSON
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                json_str
               </span>
               <span class="crayon-sy">
                )
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d87a459753016-3">
               <span class="crayon-e">
                Error
               </span>
               <span class="crayon-st">
                in
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-e">
                file
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                con
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "r"
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-e">
                cannot
               </span>
               <span class="crayon-e">
                open
               </span>
               <span class="crayon-e">
                the
               </span>
               <span class="crayon-v">
                connection
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d87a459753016-4">
              </div>
              <div class="crayon-line" id="crayon-576869bd1d87a459753016-5">
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                gt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-e">
                isValidJSON
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                json_str
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-t">
                TRUE
               </span>
               <span class="crayon-sy">
                )
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d87a459753016-6">
               <span class="crayon-sy">
                [
               </span>
               <span class="crayon-cn">
                1
               </span>
               <span class="crayon-sy">
                ]
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-t">
                TRUE
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d87a459753016-7">
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d87a459753016-8">
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                gt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-e">
                isValidJSON
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-e">
                I
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-s">
                '{"foo" : "bar"}'
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-sy">
                )
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d87a459753016-9">
               <span class="crayon-sy">
                [
               </span>
               <span class="crayon-cn">
                1
               </span>
               <span class="crayon-sy">
                ]
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-t">
                TRUE
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d87a459753016-10">
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                gt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-e">
                isValidJSON
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-e">
                I
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-s">
                '{foo : "bar"}'
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-sy">
                )
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d87a459753016-11">
               <span class="crayon-sy">
                [
               </span>
               <span class="crayon-cn">
                1
               </span>
               <span class="crayon-sy">
                ]
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-t">
                FALSE
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d87a459753016-12">
              </div>
             </div>
            </td>
           </tr>
          </tbody>
         </table>
        </div>
       </div>
       <!-- [Format Time: 0.0080 seconds] -->
       <p>
       </p>
       <p style="color: #4d4d4f;">
        <strong>
         4). asJSVars() 转换为Javascript变量格式
        </strong>
       </p>
       <p>
       </p>
       <!-- Crayon Syntax Highlighter v_2.7.2_beta -->
       <div class="crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" id="crayon-576869bd1d880984385788" style=" margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important;">
        <div class="crayon-toolbar" data-settings=" mouseover overlay hide delay" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
         <span class="crayon-title">
         </span>
         <div class="crayon-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
          <div class="crayon-button crayon-nums-button" title="切换是否显示行编号">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-plain-button" title="纯文本显示代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-wrap-button" title="切换自动换行">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-expand-button" title="点击展开代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-copy-button" title="复制代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-popup-button" title="在新窗口中显示代码">
           <div class="crayon-button-icon">
           </div>
          </div>
         </div>
        </div>
        <div class="crayon-info" style="min-height: 16.8px !important; line-height: 16.8px !important;">
        </div>
        <div class="crayon-plain-wrap">
         <textarea class="crayon-plain print-no" data-settings="dblclick" readonly="" style="-moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4; font-size: 12px !important; line-height: 15px !important;" wrap="soft">
          &amp;gt; cat(asJSVars( a = 1:10, myMatrix = matrix(1:15, 3, 5)))
a = [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ] ;

myMatrix = [ [ 1, 4, 7, 10, 13 ],
           [ 2, 5, 8, 11, 14 ],
           [ 3, 6, 9, 12, 15 ] ] ;
         </textarea>
        </div>
        <div class="crayon-main" style="">
         <table class="crayon-table">
          <tbody>
           <tr class="crayon-row">
            <td class="crayon-nums " data-settings="show">
             <div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;">
              <div class="crayon-num" data-line="crayon-576869bd1d880984385788-1">
               1
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d880984385788-2">
               2
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d880984385788-3">
               3
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d880984385788-4">
               4
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d880984385788-5">
               5
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d880984385788-6">
               6
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d880984385788-7">
               7
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d880984385788-8">
               8
              </div>
             </div>
            </td>
            <td class="crayon-code">
             <div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;">
              <div class="crayon-line" id="crayon-576869bd1d880984385788-1">
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d880984385788-2">
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                gt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-e">
                cat
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-e">
                asJSVars
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                a
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                1
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-cn">
                10
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                myMatrix
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-e">
                matrix
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-cn">
                1
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-cn">
                15
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                3
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                5
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-sy">
                )
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d880984385788-3">
               <span class="crayon-v">
                a
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                [
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                1
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                2
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                3
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                4
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                5
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                6
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                7
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                8
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                9
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                10
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                ]
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                ;
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d880984385788-4">
              </div>
              <div class="crayon-line" id="crayon-576869bd1d880984385788-5">
               <span class="crayon-v">
                myMatrix
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                [
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                [
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                1
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                4
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                7
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                10
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                13
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                ]
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d880984385788-6">
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                [
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                2
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                5
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                8
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                11
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                14
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                ]
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d880984385788-7">
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                [
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                3
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                6
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                9
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                12
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                15
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                ]
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                ]
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                ;
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d880984385788-8">
              </div>
             </div>
            </td>
           </tr>
          </tbody>
         </table>
        </div>
       </div>
       <!-- [Format Time: 0.0224 seconds] -->
       <p>
       </p>
       <p style="color: #4d4d4f;">
        得到JS两个变量，数组a和二维数组myMatrix.
       </p>
       <h2 style="color: #434343;">
        3. 自定义JSON的实现
       </h2>
       <p style="color: #4d4d4f;">
        我们把R的data.frame对象转成我们定义的JSON格式。
       </p>
       <p style="color: #4d4d4f;">
        下面JSON的定义格式
       </p>
       <p>
       </p>
       <!-- Crayon Syntax Highlighter v_2.7.2_beta -->
       <div class="crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" id="crayon-576869bd1d887968102455" style=" margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important;">
        <div class="crayon-toolbar" data-settings=" mouseover overlay hide delay" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
         <span class="crayon-title">
         </span>
         <div class="crayon-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
          <div class="crayon-button crayon-nums-button" title="切换是否显示行编号">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-plain-button" title="纯文本显示代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-wrap-button" title="切换自动换行">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-expand-button" title="点击展开代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-copy-button" title="复制代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-popup-button" title="在新窗口中显示代码">
           <div class="crayon-button-icon">
           </div>
          </div>
         </div>
        </div>
        <div class="crayon-info" style="min-height: 16.8px !important; line-height: 16.8px !important;">
        </div>
        <div class="crayon-plain-wrap">
         <textarea class="crayon-plain print-no" data-settings="dblclick" readonly="" style="-moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4; font-size: 12px !important; line-height: 15px !important;" wrap="soft">
          [
    {
        "code": "TF1312",
        "rt_time": "152929",
        "rt_latest": 93.76,
        "rt_bid1": 93.76,
        "rt_ask1": 90.76,
        "rt_bsize1": 2,
        "rt_asize1": 100,
        "optionValue": -0.4,
        "diffValue": 0.6
    }
]
         </textarea>
        </div>
        <div class="crayon-main" style="">
         <table class="crayon-table">
          <tbody>
           <tr class="crayon-row">
            <td class="crayon-nums " data-settings="show">
             <div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;">
              <div class="crayon-num" data-line="crayon-576869bd1d887968102455-1">
               1
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d887968102455-2">
               2
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d887968102455-3">
               3
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d887968102455-4">
               4
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d887968102455-5">
               5
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d887968102455-6">
               6
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d887968102455-7">
               7
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d887968102455-8">
               8
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d887968102455-9">
               9
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d887968102455-10">
               10
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d887968102455-11">
               11
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d887968102455-12">
               12
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d887968102455-13">
               13
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d887968102455-14">
               14
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d887968102455-15">
               15
              </div>
             </div>
            </td>
            <td class="crayon-code">
             <div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;">
              <div class="crayon-line" id="crayon-576869bd1d887968102455-1">
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d887968102455-2">
               <span class="crayon-sy">
                [
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d887968102455-3">
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                {
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d887968102455-4">
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "code"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "TF1312"
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d887968102455-5">
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "rt_time"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "152929"
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d887968102455-6">
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "rt_latest"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                93.76
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d887968102455-7">
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "rt_bid1"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                93.76
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d887968102455-8">
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "rt_ask1"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                90.76
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d887968102455-9">
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "rt_bsize1"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                2
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d887968102455-10">
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "rt_asize1"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                100
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d887968102455-11">
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "optionValue"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                -
               </span>
               <span class="crayon-cn">
                0.4
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d887968102455-12">
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "diffValue"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0.6
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d887968102455-13">
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                }
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d887968102455-14">
               <span class="crayon-sy">
                ]
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d887968102455-15">
              </div>
             </div>
            </td>
           </tr>
          </tbody>
         </table>
        </div>
       </div>
       <!-- [Format Time: 0.0027 seconds] -->
       <p>
       </p>
       <p style="color: #4d4d4f;">
        R语言data.frame对象
       </p>
       <p>
       </p>
       <!-- Crayon Syntax Highlighter v_2.7.2_beta -->
       <div class="crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" id="crayon-576869bd1d88d818968387" style=" margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important;">
        <div class="crayon-toolbar" data-settings=" mouseover overlay hide delay" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
         <span class="crayon-title">
         </span>
         <div class="crayon-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
          <div class="crayon-button crayon-nums-button" title="切换是否显示行编号">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-plain-button" title="纯文本显示代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-wrap-button" title="切换自动换行">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-expand-button" title="点击展开代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-copy-button" title="复制代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-popup-button" title="在新窗口中显示代码">
           <div class="crayon-button-icon">
           </div>
          </div>
         </div>
        </div>
        <div class="crayon-info" style="min-height: 16.8px !important; line-height: 16.8px !important;">
        </div>
        <div class="crayon-plain-wrap">
         <textarea class="crayon-plain print-no" data-settings="dblclick" readonly="" style="-moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4; font-size: 12px !important; line-height: 15px !important;" wrap="soft">
          df&amp;lt;-data.frame(
  code=c('TF1312','TF1310','TF1313'),
  rt_time=c("152929","152929","152929"),
  rt_latest=c(93.76,93.76,93.76),
  rt_bid1=c(93.76,93.76,93.76),
  rt_ask1=c(90.76,90.76,90.76),
  rt_bsize1=c(2,3,1),
  rt_asize1=c(100,1,11),
  optionValue=c(-0.4,0.2,-0.1),
  diffValue=c(0.6,0.6,0.5)
)

&amp;gt; df
    code rt_time rt_latest rt_bid1 rt_ask1 rt_bsize1 rt_asize1 optionValue diffValue
1 TF1312  152929     93.76   93.76   90.76         2       100        -0.4       0.6
2 TF1310  152929     93.76   93.76   90.76         3         1         0.2       0.6
3 TF1313  152929     93.76   93.76   90.76         1        11        -0.1       0.5
         </textarea>
        </div>
        <div class="crayon-main" style="">
         <table class="crayon-table">
          <tbody>
           <tr class="crayon-row">
            <td class="crayon-nums " data-settings="show">
             <div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;">
              <div class="crayon-num" data-line="crayon-576869bd1d88d818968387-1">
               1
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d88d818968387-2">
               2
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d88d818968387-3">
               3
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d88d818968387-4">
               4
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d88d818968387-5">
               5
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d88d818968387-6">
               6
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d88d818968387-7">
               7
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d88d818968387-8">
               8
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d88d818968387-9">
               9
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d88d818968387-10">
               10
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d88d818968387-11">
               11
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d88d818968387-12">
               12
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d88d818968387-13">
               13
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d88d818968387-14">
               14
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d88d818968387-15">
               15
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d88d818968387-16">
               16
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d88d818968387-17">
               17
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d88d818968387-18">
               18
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d88d818968387-19">
               19
              </div>
             </div>
            </td>
            <td class="crayon-code">
             <div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;">
              <div class="crayon-line" id="crayon-576869bd1d88d818968387-1">
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d88d818968387-2">
               <span class="crayon-v">
                df
               </span>
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                lt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-o">
                -
               </span>
               <span class="crayon-v">
                data
               </span>
               <span class="crayon-sy">
                .
               </span>
               <span class="crayon-e">
                frame
               </span>
               <span class="crayon-sy">
                (
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d88d818968387-3">
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                code
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-e">
                c
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-s">
                'TF1312'
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-s">
                'TF1310'
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-s">
                'TF1313'
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d88d818968387-4">
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                rt_time
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-e">
                c
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-s">
                "152929"
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-s">
                "152929"
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-s">
                "152929"
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d88d818968387-5">
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                rt_latest
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-e">
                c
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-cn">
                93.76
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-cn">
                93.76
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-cn">
                93.76
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d88d818968387-6">
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                rt_bid1
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-e">
                c
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-cn">
                93.76
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-cn">
                93.76
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-cn">
                93.76
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d88d818968387-7">
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                rt_ask1
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-e">
                c
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-cn">
                90.76
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-cn">
                90.76
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-cn">
                90.76
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d88d818968387-8">
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                rt_bsize1
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-e">
                c
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-cn">
                2
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-cn">
                3
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-cn">
                1
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d88d818968387-9">
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                rt_asize1
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-e">
                c
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-cn">
                100
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-cn">
                1
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-cn">
                11
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d88d818968387-10">
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                optionValue
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-e">
                c
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-o">
                -
               </span>
               <span class="crayon-cn">
                0.4
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-cn">
                0.2
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-o">
                -
               </span>
               <span class="crayon-cn">
                0.1
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d88d818968387-11">
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                diffValue
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-e">
                c
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-cn">
                0.6
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-cn">
                0.6
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-cn">
                0.5
               </span>
               <span class="crayon-sy">
                )
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d88d818968387-12">
               <span class="crayon-sy">
                )
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d88d818968387-13">
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d88d818968387-14">
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                gt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-e">
                df
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d88d818968387-15">
               <span class="crayon-e">
               </span>
               <span class="crayon-e">
                code
               </span>
               <span class="crayon-e">
                rt_time
               </span>
               <span class="crayon-e">
                rt_latest
               </span>
               <span class="crayon-e">
                rt_bid1
               </span>
               <span class="crayon-e">
                rt_ask1
               </span>
               <span class="crayon-e">
                rt_bsize1
               </span>
               <span class="crayon-e">
                rt_asize1
               </span>
               <span class="crayon-e">
                optionValue
               </span>
               <span class="crayon-i">
                diffValue
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d88d818968387-16">
               <span class="crayon-cn">
                1
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-i">
                TF1312
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                152929
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                93.76
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                93.76
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                90.76
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                2
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                100
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                -
               </span>
               <span class="crayon-cn">
                0.4
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0.6
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d88d818968387-17">
               <span class="crayon-cn">
                2
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-i">
                TF1310
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                152929
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                93.76
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                93.76
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                90.76
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                3
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                1
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0.2
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0.6
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d88d818968387-18">
               <span class="crayon-cn">
                3
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-i">
                TF1313
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                152929
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                93.76
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                93.76
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                90.76
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                1
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                11
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                -
               </span>
               <span class="crayon-cn">
                0.1
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0.5
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d88d818968387-19">
              </div>
             </div>
            </td>
           </tr>
          </tbody>
         </table>
        </div>
       </div>
       <!-- [Format Time: 0.0234 seconds] -->
       <p>
       </p>
       <p style="color: #4d4d4f;">
        直接使用toJSON，输出的JSON串是按列组合成了数组，并不是我们想要的。
       </p>
       <p>
       </p>
       <!-- Crayon Syntax Highlighter v_2.7.2_beta -->
       <div class="crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" id="crayon-576869bd1d893456940345" style=" margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important;">
        <div class="crayon-toolbar" data-settings=" mouseover overlay hide delay" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
         <span class="crayon-title">
         </span>
         <div class="crayon-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
          <div class="crayon-button crayon-nums-button" title="切换是否显示行编号">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-plain-button" title="纯文本显示代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-wrap-button" title="切换自动换行">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-expand-button" title="点击展开代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-copy-button" title="复制代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-popup-button" title="在新窗口中显示代码">
           <div class="crayon-button-icon">
           </div>
          </div>
         </div>
        </div>
        <div class="crayon-info" style="min-height: 16.8px !important; line-height: 16.8px !important;">
        </div>
        <div class="crayon-plain-wrap">
         <textarea class="crayon-plain print-no" data-settings="dblclick" readonly="" style="-moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4; font-size: 12px !important; line-height: 15px !important;" wrap="soft">
          &amp;gt; cat(toJSON(df))
{
 "code": [ "TF1312", "TF1310", "TF1313" ],
"rt_time": [ "152929", "152929", "152929" ],
"rt_latest": [  93.76,  93.76,  93.76 ],
"rt_bid1": [  93.76,  93.76,  93.76 ],
"rt_ask1": [  90.76,  90.76,  90.76 ],
"rt_bsize1": [      2,      3,      1 ],
"rt_asize1": [    100,      1,     11 ],
"optionValue": [   -0.4,    0.2,   -0.1 ],
"diffValue": [    0.6,    0.6,    0.5 ] 
}
         </textarea>
        </div>
        <div class="crayon-main" style="">
         <table class="crayon-table">
          <tbody>
           <tr class="crayon-row">
            <td class="crayon-nums " data-settings="show">
             <div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;">
              <div class="crayon-num" data-line="crayon-576869bd1d893456940345-1">
               1
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d893456940345-2">
               2
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d893456940345-3">
               3
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d893456940345-4">
               4
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d893456940345-5">
               5
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d893456940345-6">
               6
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d893456940345-7">
               7
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d893456940345-8">
               8
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d893456940345-9">
               9
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d893456940345-10">
               10
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d893456940345-11">
               11
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d893456940345-12">
               12
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d893456940345-13">
               13
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d893456940345-14">
               14
              </div>
             </div>
            </td>
            <td class="crayon-code">
             <div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;">
              <div class="crayon-line" id="crayon-576869bd1d893456940345-1">
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d893456940345-2">
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                gt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-e">
                cat
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-e">
                toJSON
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                df
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-sy">
                )
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d893456940345-3">
               <span class="crayon-sy">
                {
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d893456940345-4">
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "code"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                [
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "TF1312"
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "TF1310"
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "TF1313"
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                ]
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d893456940345-5">
               <span class="crayon-s">
                "rt_time"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                [
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "152929"
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "152929"
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "152929"
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                ]
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d893456940345-6">
               <span class="crayon-s">
                "rt_latest"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                [
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                93.76
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                93.76
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                93.76
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                ]
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d893456940345-7">
               <span class="crayon-s">
                "rt_bid1"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                [
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                93.76
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                93.76
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                93.76
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                ]
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d893456940345-8">
               <span class="crayon-s">
                "rt_ask1"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                [
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                90.76
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                90.76
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                90.76
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                ]
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d893456940345-9">
               <span class="crayon-s">
                "rt_bsize1"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                [
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                2
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                3
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                1
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                ]
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d893456940345-10">
               <span class="crayon-s">
                "rt_asize1"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                [
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                100
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                1
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                11
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                ]
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d893456940345-11">
               <span class="crayon-s">
                "optionValue"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                [
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                -
               </span>
               <span class="crayon-cn">
                0.4
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0.2
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                -
               </span>
               <span class="crayon-cn">
                0.1
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                ]
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d893456940345-12">
               <span class="crayon-s">
                "diffValue"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                [
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0.6
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0.6
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0.5
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                ]
               </span>
               <span class="crayon-h">
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d893456940345-13">
               <span class="crayon-sy">
                }
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d893456940345-14">
              </div>
             </div>
            </td>
           </tr>
          </tbody>
         </table>
        </div>
       </div>
       <!-- [Format Time: 0.0157 seconds] -->
       <p>
       </p>
       <p style="color: #4d4d4f;">
        对data.frame进行数据处理
       </p>
       <p>
       </p>
       <!-- Crayon Syntax Highlighter v_2.7.2_beta -->
       <div class="crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" id="crayon-576869bd1d89b994432157" style=" margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important;">
        <div class="crayon-toolbar" data-settings=" mouseover overlay hide delay" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
         <span class="crayon-title">
         </span>
         <div class="crayon-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
          <div class="crayon-button crayon-nums-button" title="切换是否显示行编号">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-plain-button" title="纯文本显示代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-wrap-button" title="切换自动换行">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-expand-button" title="点击展开代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-copy-button" title="复制代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-popup-button" title="在新窗口中显示代码">
           <div class="crayon-button-icon">
           </div>
          </div>
         </div>
        </div>
        <div class="crayon-info" style="min-height: 16.8px !important; line-height: 16.8px !important;">
        </div>
        <div class="crayon-plain-wrap">
         <textarea class="crayon-plain print-no" data-settings="dblclick" readonly="" style="-moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4; font-size: 12px !important; line-height: 15px !important;" wrap="soft">
          library(plyr)
&amp;gt; cat(toJSON(unname(alply(df, 1, identity))))
[
 {
 "code": "TF1312",
"rt_time": "152929",
"rt_latest":  93.76,
"rt_bid1":  93.76,
"rt_ask1":  90.76,
"rt_bsize1":      2,
"rt_asize1":    100,
"optionValue":   -0.4,
"diffValue":    0.6 
},
{
 "code": "TF1310",
"rt_time": "152929",
"rt_latest":  93.76,
"rt_bid1":  93.76,
"rt_ask1":  90.76,
"rt_bsize1":      3,
"rt_asize1":      1,
"optionValue":    0.2,
"diffValue":    0.6 
},
{
 "code": "TF1313",
"rt_time": "152929",
"rt_latest":  93.76,
"rt_bid1":  93.76,
"rt_ask1":  90.76,
"rt_bsize1":      1,
"rt_asize1":     11,
"optionValue":   -0.1,
"diffValue":    0.5 
} 
]
         </textarea>
        </div>
        <div class="crayon-main" style="">
         <table class="crayon-table">
          <tbody>
           <tr class="crayon-row">
            <td class="crayon-nums " data-settings="show">
             <div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;">
              <div class="crayon-num" data-line="crayon-576869bd1d89b994432157-1">
               1
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d89b994432157-2">
               2
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d89b994432157-3">
               3
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d89b994432157-4">
               4
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d89b994432157-5">
               5
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d89b994432157-6">
               6
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d89b994432157-7">
               7
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d89b994432157-8">
               8
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d89b994432157-9">
               9
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d89b994432157-10">
               10
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d89b994432157-11">
               11
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d89b994432157-12">
               12
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d89b994432157-13">
               13
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d89b994432157-14">
               14
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d89b994432157-15">
               15
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d89b994432157-16">
               16
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d89b994432157-17">
               17
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d89b994432157-18">
               18
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d89b994432157-19">
               19
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d89b994432157-20">
               20
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d89b994432157-21">
               21
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d89b994432157-22">
               22
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d89b994432157-23">
               23
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d89b994432157-24">
               24
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d89b994432157-25">
               25
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d89b994432157-26">
               26
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d89b994432157-27">
               27
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d89b994432157-28">
               28
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d89b994432157-29">
               29
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d89b994432157-30">
               30
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d89b994432157-31">
               31
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d89b994432157-32">
               32
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d89b994432157-33">
               33
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d89b994432157-34">
               34
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d89b994432157-35">
               35
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d89b994432157-36">
               36
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d89b994432157-37">
               37
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d89b994432157-38">
               38
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d89b994432157-39">
               39
              </div>
             </div>
            </td>
            <td class="crayon-code">
             <div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;">
              <div class="crayon-line" id="crayon-576869bd1d89b994432157-1">
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d89b994432157-2">
               <span class="crayon-e">
                library
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                plyr
               </span>
               <span class="crayon-sy">
                )
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d89b994432157-3">
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                gt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-e">
                cat
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-e">
                toJSON
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-e">
                unname
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-e">
                alply
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                df
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                1
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                identity
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-sy">
                )
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d89b994432157-4">
               <span class="crayon-sy">
                [
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d89b994432157-5">
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                {
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d89b994432157-6">
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "code"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "TF1312"
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d89b994432157-7">
               <span class="crayon-s">
                "rt_time"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "152929"
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d89b994432157-8">
               <span class="crayon-s">
                "rt_latest"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                93.76
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d89b994432157-9">
               <span class="crayon-s">
                "rt_bid1"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                93.76
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d89b994432157-10">
               <span class="crayon-s">
                "rt_ask1"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                90.76
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d89b994432157-11">
               <span class="crayon-s">
                "rt_bsize1"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                2
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d89b994432157-12">
               <span class="crayon-s">
                "rt_asize1"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                100
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d89b994432157-13">
               <span class="crayon-s">
                "optionValue"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                -
               </span>
               <span class="crayon-cn">
                0.4
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d89b994432157-14">
               <span class="crayon-s">
                "diffValue"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0.6
               </span>
               <span class="crayon-h">
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d89b994432157-15">
               <span class="crayon-sy">
                }
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d89b994432157-16">
               <span class="crayon-sy">
                {
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d89b994432157-17">
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "code"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "TF1310"
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d89b994432157-18">
               <span class="crayon-s">
                "rt_time"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "152929"
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d89b994432157-19">
               <span class="crayon-s">
                "rt_latest"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                93.76
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d89b994432157-20">
               <span class="crayon-s">
                "rt_bid1"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                93.76
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d89b994432157-21">
               <span class="crayon-s">
                "rt_ask1"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                90.76
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d89b994432157-22">
               <span class="crayon-s">
                "rt_bsize1"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                3
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d89b994432157-23">
               <span class="crayon-s">
                "rt_asize1"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                1
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d89b994432157-24">
               <span class="crayon-s">
                "optionValue"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0.2
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d89b994432157-25">
               <span class="crayon-s">
                "diffValue"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0.6
               </span>
               <span class="crayon-h">
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d89b994432157-26">
               <span class="crayon-sy">
                }
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d89b994432157-27">
               <span class="crayon-sy">
                {
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d89b994432157-28">
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "code"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "TF1313"
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d89b994432157-29">
               <span class="crayon-s">
                "rt_time"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-s">
                "152929"
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d89b994432157-30">
               <span class="crayon-s">
                "rt_latest"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                93.76
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d89b994432157-31">
               <span class="crayon-s">
                "rt_bid1"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                93.76
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d89b994432157-32">
               <span class="crayon-s">
                "rt_ask1"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                90.76
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d89b994432157-33">
               <span class="crayon-s">
                "rt_bsize1"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                1
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d89b994432157-34">
               <span class="crayon-s">
                "rt_asize1"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                11
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d89b994432157-35">
               <span class="crayon-s">
                "optionValue"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                -
               </span>
               <span class="crayon-cn">
                0.1
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d89b994432157-36">
               <span class="crayon-s">
                "diffValue"
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0.5
               </span>
               <span class="crayon-h">
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d89b994432157-37">
               <span class="crayon-sy">
                }
               </span>
               <span class="crayon-h">
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d89b994432157-38">
               <span class="crayon-sy">
                ]
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d89b994432157-39">
              </div>
             </div>
            </td>
           </tr>
          </tbody>
         </table>
        </div>
       </div>
       <!-- [Format Time: 0.0130 seconds] -->
       <p>
       </p>
       <p style="color: #4d4d4f;">
        这回就对了，正是我希望的按行输出的结果！！通过alply函数做了变换。
       </p>
       <h2 style="color: #434343;">
        4. JSON性能比较
       </h2>
       <p style="color: #4d4d4f;">
        性能比较我们做2组测试：
       </p>
       <ul style="color: #4d4d4f;">
        <li>
         1. rjson和RJSONIO 对大对象进行序列化(toJSON)测试
        </li>
        <li>
         2. RJSONIO包，序列化(toJSON) 列式输出和行式输出的测试
        </li>
       </ul>
       <p style="color: #4d4d4f;">
        <strong>
         1). rjson和RJSONIO 对大对象进行序列化(toJSON)测试
        </strong>
        <br/>
        创建一个rjson测试脚本，在命令行启动。
       </p>
       <p>
       </p>
       <!-- Crayon Syntax Highlighter v_2.7.2_beta -->
       <div class="crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" id="crayon-576869bd1d8a1853995310" style=" margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important;">
        <div class="crayon-toolbar" data-settings=" mouseover overlay hide delay" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
         <span class="crayon-title">
         </span>
         <div class="crayon-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
          <div class="crayon-button crayon-nums-button" title="切换是否显示行编号">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-plain-button" title="纯文本显示代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-wrap-button" title="切换自动换行">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-expand-button" title="点击展开代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-copy-button" title="复制代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-popup-button" title="在新窗口中显示代码">
           <div class="crayon-button-icon">
           </div>
          </div>
         </div>
        </div>
        <div class="crayon-info" style="min-height: 16.8px !important; line-height: 16.8px !important;">
        </div>
        <div class="crayon-plain-wrap">
         <textarea class="crayon-plain print-no" data-settings="dblclick" readonly="" style="-moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4; font-size: 12px !important; line-height: 15px !important;" wrap="soft">
          &amp;gt; library(rjson)
&amp;gt;
&amp;gt; df&amp;lt;-data.frame(
+   a=rep(letters,10000),
+   b=rnorm(260000),
+   c=as.factor(Sys.Date()-rep(1:260000))
+ )
&amp;gt;
&amp;gt; system.time(rjson::toJSON(df))
1.01 0.02 1.03
&amp;gt; system.time(rjson::toJSON(df))
1.01 0.03 1.04
&amp;gt; system.time(rjson::toJSON(df))
0.98 0.05 1.03
         </textarea>
        </div>
        <div class="crayon-main" style="">
         <table class="crayon-table">
          <tbody>
           <tr class="crayon-row">
            <td class="crayon-nums " data-settings="show">
             <div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;">
              <div class="crayon-num" data-line="crayon-576869bd1d8a1853995310-1">
               1
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d8a1853995310-2">
               2
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d8a1853995310-3">
               3
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d8a1853995310-4">
               4
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d8a1853995310-5">
               5
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d8a1853995310-6">
               6
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d8a1853995310-7">
               7
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d8a1853995310-8">
               8
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d8a1853995310-9">
               9
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d8a1853995310-10">
               10
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d8a1853995310-11">
               11
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d8a1853995310-12">
               12
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d8a1853995310-13">
               13
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d8a1853995310-14">
               14
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d8a1853995310-15">
               15
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d8a1853995310-16">
               16
              </div>
             </div>
            </td>
            <td class="crayon-code">
             <div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;">
              <div class="crayon-line" id="crayon-576869bd1d8a1853995310-1">
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d8a1853995310-2">
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                gt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-e">
                library
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                rjson
               </span>
               <span class="crayon-sy">
                )
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d8a1853995310-3">
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                gt
               </span>
               <span class="crayon-sy">
                ;
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d8a1853995310-4">
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                gt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                df
               </span>
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                lt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-o">
                -
               </span>
               <span class="crayon-v">
                data
               </span>
               <span class="crayon-sy">
                .
               </span>
               <span class="crayon-e">
                frame
               </span>
               <span class="crayon-sy">
                (
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d8a1853995310-5">
               <span class="crayon-o">
                +
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                a
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-e">
                rep
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                letters
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-cn">
                10000
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d8a1853995310-6">
               <span class="crayon-o">
                +
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                b
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-e">
                rnorm
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-cn">
                260000
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d8a1853995310-7">
               <span class="crayon-o">
                +
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                c
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-st">
                as
               </span>
               <span class="crayon-sy">
                .
               </span>
               <span class="crayon-e">
                factor
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                Sys
               </span>
               <span class="crayon-sy">
                .
               </span>
               <span class="crayon-e">
                Date
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-o">
                -
               </span>
               <span class="crayon-e">
                rep
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-cn">
                1
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-cn">
                260000
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-sy">
                )
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d8a1853995310-8">
               <span class="crayon-o">
                +
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                )
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d8a1853995310-9">
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                gt
               </span>
               <span class="crayon-sy">
                ;
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d8a1853995310-10">
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                gt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                system
               </span>
               <span class="crayon-sy">
                .
               </span>
               <span class="crayon-e">
                time
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                rjson
               </span>
               <span class="crayon-o">
                ::
               </span>
               <span class="crayon-e">
                toJSON
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                df
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-sy">
                )
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d8a1853995310-11">
               <span class="crayon-cn">
                1.01
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0.02
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                1.03
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d8a1853995310-12">
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                gt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                system
               </span>
               <span class="crayon-sy">
                .
               </span>
               <span class="crayon-e">
                time
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                rjson
               </span>
               <span class="crayon-o">
                ::
               </span>
               <span class="crayon-e">
                toJSON
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                df
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-sy">
                )
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d8a1853995310-13">
               <span class="crayon-cn">
                1.01
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0.03
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                1.04
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d8a1853995310-14">
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                gt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                system
               </span>
               <span class="crayon-sy">
                .
               </span>
               <span class="crayon-e">
                time
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                rjson
               </span>
               <span class="crayon-o">
                ::
               </span>
               <span class="crayon-e">
                toJSON
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                df
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-sy">
                )
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d8a1853995310-15">
               <span class="crayon-cn">
                0.98
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0.05
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                1.03
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d8a1853995310-16">
              </div>
             </div>
            </td>
           </tr>
          </tbody>
         </table>
        </div>
       </div>
       <!-- [Format Time: 0.0130 seconds] -->
       <p>
       </p>
       <p style="color: #4d4d4f;">
        同样，再创建一个RJSONIO测试脚本，在命令行启动。
       </p>
       <p>
       </p>
       <!-- Crayon Syntax Highlighter v_2.7.2_beta -->
       <div class="crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" id="crayon-576869bd1d8a7846118951" style=" margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important;">
        <div class="crayon-toolbar" data-settings=" mouseover overlay hide delay" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
         <span class="crayon-title">
         </span>
         <div class="crayon-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
          <div class="crayon-button crayon-nums-button" title="切换是否显示行编号">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-plain-button" title="纯文本显示代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-wrap-button" title="切换自动换行">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-expand-button" title="点击展开代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-copy-button" title="复制代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-popup-button" title="在新窗口中显示代码">
           <div class="crayon-button-icon">
           </div>
          </div>
         </div>
        </div>
        <div class="crayon-info" style="min-height: 16.8px !important; line-height: 16.8px !important;">
        </div>
        <div class="crayon-plain-wrap">
         <textarea class="crayon-plain print-no" data-settings="dblclick" readonly="" style="-moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4; font-size: 12px !important; line-height: 15px !important;" wrap="soft">
          &amp;gt; library(RJSONIO)
&amp;gt;
&amp;gt; df&amp;lt;-data.frame(
+   a=rep(letters,10000),
+   b=rnorm(260000),
+   c=as.factor(Sys.Date()-rep(1:260000))
+ )
&amp;gt;
&amp;gt; system.time(RJSONIO::toJSON(df))
2.23 0.02 2.24
&amp;gt; system.time(RJSONIO::toJSON(df))
2.30 0.00 2.29
&amp;gt; system.time(RJSONIO::toJSON(df))
2.25 0.01 2.26
         </textarea>
        </div>
        <div class="crayon-main" style="">
         <table class="crayon-table">
          <tbody>
           <tr class="crayon-row">
            <td class="crayon-nums " data-settings="show">
             <div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;">
              <div class="crayon-num" data-line="crayon-576869bd1d8a7846118951-1">
               1
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d8a7846118951-2">
               2
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d8a7846118951-3">
               3
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d8a7846118951-4">
               4
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d8a7846118951-5">
               5
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d8a7846118951-6">
               6
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d8a7846118951-7">
               7
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d8a7846118951-8">
               8
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d8a7846118951-9">
               9
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d8a7846118951-10">
               10
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d8a7846118951-11">
               11
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d8a7846118951-12">
               12
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d8a7846118951-13">
               13
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d8a7846118951-14">
               14
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d8a7846118951-15">
               15
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d8a7846118951-16">
               16
              </div>
             </div>
            </td>
            <td class="crayon-code">
             <div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;">
              <div class="crayon-line" id="crayon-576869bd1d8a7846118951-1">
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d8a7846118951-2">
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                gt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-e">
                library
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                RJSONIO
               </span>
               <span class="crayon-sy">
                )
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d8a7846118951-3">
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                gt
               </span>
               <span class="crayon-sy">
                ;
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d8a7846118951-4">
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                gt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                df
               </span>
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                lt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-o">
                -
               </span>
               <span class="crayon-v">
                data
               </span>
               <span class="crayon-sy">
                .
               </span>
               <span class="crayon-e">
                frame
               </span>
               <span class="crayon-sy">
                (
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d8a7846118951-5">
               <span class="crayon-o">
                +
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                a
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-e">
                rep
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                letters
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-cn">
                10000
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d8a7846118951-6">
               <span class="crayon-o">
                +
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                b
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-e">
                rnorm
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-cn">
                260000
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d8a7846118951-7">
               <span class="crayon-o">
                +
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                c
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-st">
                as
               </span>
               <span class="crayon-sy">
                .
               </span>
               <span class="crayon-e">
                factor
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                Sys
               </span>
               <span class="crayon-sy">
                .
               </span>
               <span class="crayon-e">
                Date
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-o">
                -
               </span>
               <span class="crayon-e">
                rep
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-cn">
                1
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-cn">
                260000
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-sy">
                )
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d8a7846118951-8">
               <span class="crayon-o">
                +
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                )
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d8a7846118951-9">
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                gt
               </span>
               <span class="crayon-sy">
                ;
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d8a7846118951-10">
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                gt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                system
               </span>
               <span class="crayon-sy">
                .
               </span>
               <span class="crayon-e">
                time
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                RJSONIO
               </span>
               <span class="crayon-o">
                ::
               </span>
               <span class="crayon-e">
                toJSON
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                df
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-sy">
                )
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d8a7846118951-11">
               <span class="crayon-cn">
                2.23
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0.02
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                2.24
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d8a7846118951-12">
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                gt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                system
               </span>
               <span class="crayon-sy">
                .
               </span>
               <span class="crayon-e">
                time
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                RJSONIO
               </span>
               <span class="crayon-o">
                ::
               </span>
               <span class="crayon-e">
                toJSON
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                df
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-sy">
                )
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d8a7846118951-13">
               <span class="crayon-cn">
                2.30
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0.00
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                2.29
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d8a7846118951-14">
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                gt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                system
               </span>
               <span class="crayon-sy">
                .
               </span>
               <span class="crayon-e">
                time
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                RJSONIO
               </span>
               <span class="crayon-o">
                ::
               </span>
               <span class="crayon-e">
                toJSON
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                df
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-sy">
                )
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d8a7846118951-15">
               <span class="crayon-cn">
                2.25
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0.01
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                2.26
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d8a7846118951-16">
              </div>
             </div>
            </td>
           </tr>
          </tbody>
         </table>
        </div>
       </div>
       <!-- [Format Time: 0.0157 seconds] -->
       <p>
       </p>
       <p style="color: #4d4d4f;">
        对比结果发现，rjson的性能优于RJSONIO。
       </p>
       <p style="color: #4d4d4f;">
        <strong>
         2). rjson和RJSONIO，序列化(toJSON) 列式输出和行式输出的测试
        </strong>
       </p>
       <p style="color: #4d4d4f;">
        创建一个rjson测试脚本，在命令行启动。
       </p>
       <p>
       </p>
       <!-- Crayon Syntax Highlighter v_2.7.2_beta -->
       <div class="crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" id="crayon-576869bd1d8ae051015342" style=" margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important;">
        <div class="crayon-toolbar" data-settings=" mouseover overlay hide delay" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
         <span class="crayon-title">
         </span>
         <div class="crayon-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
          <div class="crayon-button crayon-nums-button" title="切换是否显示行编号">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-plain-button" title="纯文本显示代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-wrap-button" title="切换自动换行">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-expand-button" title="点击展开代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-copy-button" title="复制代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-popup-button" title="在新窗口中显示代码">
           <div class="crayon-button-icon">
           </div>
          </div>
         </div>
        </div>
        <div class="crayon-info" style="min-height: 16.8px !important; line-height: 16.8px !important;">
        </div>
        <div class="crayon-plain-wrap">
         <textarea class="crayon-plain print-no" data-settings="dblclick" readonly="" style="-moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4; font-size: 12px !important; line-height: 15px !important;" wrap="soft">
          &amp;gt; library(rjson)
&amp;gt; library(plyr)
&amp;gt;
&amp;gt; df&amp;lt;-data.frame(
+   a=rep(letters,100),
+   b=rnorm(2600),
+   c=as.factor(Sys.Date()-rep(1:2600))
+ )
&amp;gt;
&amp;gt; system.time(rjson::toJSON(df))
0.01 0.00 0.02
&amp;gt; system.time(rjson::toJSON(df))
0.01 0.00 0.02

&amp;gt; system.time(rjson::toJSON(unname(alply(df, 1, identity))))
1.55 0.02 1.56
&amp;gt; system.time(rjson::toJSON(unname(alply(df, 1, identity))))
0.83 0.00 0.83
         </textarea>
        </div>
        <div class="crayon-main" style="">
         <table class="crayon-table">
          <tbody>
           <tr class="crayon-row">
            <td class="crayon-nums " data-settings="show">
             <div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;">
              <div class="crayon-num" data-line="crayon-576869bd1d8ae051015342-1">
               1
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d8ae051015342-2">
               2
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d8ae051015342-3">
               3
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d8ae051015342-4">
               4
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d8ae051015342-5">
               5
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d8ae051015342-6">
               6
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d8ae051015342-7">
               7
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d8ae051015342-8">
               8
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d8ae051015342-9">
               9
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d8ae051015342-10">
               10
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d8ae051015342-11">
               11
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d8ae051015342-12">
               12
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d8ae051015342-13">
               13
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d8ae051015342-14">
               14
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d8ae051015342-15">
               15
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d8ae051015342-16">
               16
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d8ae051015342-17">
               17
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d8ae051015342-18">
               18
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d8ae051015342-19">
               19
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d8ae051015342-20">
               20
              </div>
             </div>
            </td>
            <td class="crayon-code">
             <div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;">
              <div class="crayon-line" id="crayon-576869bd1d8ae051015342-1">
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d8ae051015342-2">
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                gt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-e">
                library
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                rjson
               </span>
               <span class="crayon-sy">
                )
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d8ae051015342-3">
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                gt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-e">
                library
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                plyr
               </span>
               <span class="crayon-sy">
                )
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d8ae051015342-4">
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                gt
               </span>
               <span class="crayon-sy">
                ;
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d8ae051015342-5">
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                gt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                df
               </span>
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                lt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-o">
                -
               </span>
               <span class="crayon-v">
                data
               </span>
               <span class="crayon-sy">
                .
               </span>
               <span class="crayon-e">
                frame
               </span>
               <span class="crayon-sy">
                (
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d8ae051015342-6">
               <span class="crayon-o">
                +
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                a
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-e">
                rep
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                letters
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-cn">
                100
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d8ae051015342-7">
               <span class="crayon-o">
                +
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                b
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-e">
                rnorm
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-cn">
                2600
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d8ae051015342-8">
               <span class="crayon-o">
                +
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                c
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-st">
                as
               </span>
               <span class="crayon-sy">
                .
               </span>
               <span class="crayon-e">
                factor
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                Sys
               </span>
               <span class="crayon-sy">
                .
               </span>
               <span class="crayon-e">
                Date
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-o">
                -
               </span>
               <span class="crayon-e">
                rep
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-cn">
                1
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-cn">
                2600
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-sy">
                )
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d8ae051015342-9">
               <span class="crayon-o">
                +
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                )
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d8ae051015342-10">
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                gt
               </span>
               <span class="crayon-sy">
                ;
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d8ae051015342-11">
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                gt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                system
               </span>
               <span class="crayon-sy">
                .
               </span>
               <span class="crayon-e">
                time
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                rjson
               </span>
               <span class="crayon-o">
                ::
               </span>
               <span class="crayon-e">
                toJSON
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                df
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-sy">
                )
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d8ae051015342-12">
               <span class="crayon-cn">
                0.01
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0.00
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0.02
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d8ae051015342-13">
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                gt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                system
               </span>
               <span class="crayon-sy">
                .
               </span>
               <span class="crayon-e">
                time
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                rjson
               </span>
               <span class="crayon-o">
                ::
               </span>
               <span class="crayon-e">
                toJSON
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                df
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-sy">
                )
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d8ae051015342-14">
               <span class="crayon-cn">
                0.01
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0.00
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0.02
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d8ae051015342-15">
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d8ae051015342-16">
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                gt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                system
               </span>
               <span class="crayon-sy">
                .
               </span>
               <span class="crayon-e">
                time
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                rjson
               </span>
               <span class="crayon-o">
                ::
               </span>
               <span class="crayon-e">
                toJSON
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-e">
                unname
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-e">
                alply
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                df
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                1
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                identity
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-sy">
                )
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d8ae051015342-17">
               <span class="crayon-cn">
                1.55
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0.02
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                1.56
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d8ae051015342-18">
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                gt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                system
               </span>
               <span class="crayon-sy">
                .
               </span>
               <span class="crayon-e">
                time
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                rjson
               </span>
               <span class="crayon-o">
                ::
               </span>
               <span class="crayon-e">
                toJSON
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-e">
                unname
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-e">
                alply
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                df
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                1
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                identity
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-sy">
                )
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d8ae051015342-19">
               <span class="crayon-cn">
                0.83
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0.00
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0.83
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d8ae051015342-20">
              </div>
             </div>
            </td>
           </tr>
          </tbody>
         </table>
        </div>
       </div>
       <!-- [Format Time: 0.0305 seconds] -->
       <p>
       </p>
       <p style="color: #4d4d4f;">
        同样，再创建一个RJSONIO测试脚本，在命令行启动。
       </p>
       <p>
       </p>
       <!-- Crayon Syntax Highlighter v_2.7.2_beta -->
       <div class="crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" id="crayon-576869bd1d8b4643760644" style=" margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important;">
        <div class="crayon-toolbar" data-settings=" mouseover overlay hide delay" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
         <span class="crayon-title">
         </span>
         <div class="crayon-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
          <div class="crayon-button crayon-nums-button" title="切换是否显示行编号">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-plain-button" title="纯文本显示代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-wrap-button" title="切换自动换行">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-expand-button" title="点击展开代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-copy-button" title="复制代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-popup-button" title="在新窗口中显示代码">
           <div class="crayon-button-icon">
           </div>
          </div>
         </div>
        </div>
        <div class="crayon-info" style="min-height: 16.8px !important; line-height: 16.8px !important;">
        </div>
        <div class="crayon-plain-wrap">
         <textarea class="crayon-plain print-no" data-settings="dblclick" readonly="" style="-moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4; font-size: 12px !important; line-height: 15px !important;" wrap="soft">
          &amp;gt; library(RJSONIO)
&amp;gt; library(plyr)
&amp;gt;
&amp;gt; df&amp;lt;-data.frame(
+   a=rep(letters,100),
+   b=rnorm(2600),
+   c=as.factor(Sys.Date()-rep(1:2600))
+ )
&amp;gt;
&amp;gt; system.time(RJSONIO::toJSON(df))
0.03 0.00 0.03
&amp;gt; system.time(RJSONIO::toJSON(df))
0.04 0.00 0.03

&amp;gt; system.time(RJSONIO::toJSON(unname(alply(df, 1, identity))))
2.82 0.02 2.84
&amp;gt; system.time(RJSONIO::toJSON(unname(alply(df, 1, identity))))
2.06 0.00 2.06
         </textarea>
        </div>
        <div class="crayon-main" style="">
         <table class="crayon-table">
          <tbody>
           <tr class="crayon-row">
            <td class="crayon-nums " data-settings="show">
             <div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;">
              <div class="crayon-num" data-line="crayon-576869bd1d8b4643760644-1">
               1
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d8b4643760644-2">
               2
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d8b4643760644-3">
               3
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d8b4643760644-4">
               4
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d8b4643760644-5">
               5
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d8b4643760644-6">
               6
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d8b4643760644-7">
               7
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d8b4643760644-8">
               8
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d8b4643760644-9">
               9
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d8b4643760644-10">
               10
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d8b4643760644-11">
               11
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d8b4643760644-12">
               12
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d8b4643760644-13">
               13
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d8b4643760644-14">
               14
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d8b4643760644-15">
               15
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d8b4643760644-16">
               16
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d8b4643760644-17">
               17
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d8b4643760644-18">
               18
              </div>
              <div class="crayon-num" data-line="crayon-576869bd1d8b4643760644-19">
               19
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-576869bd1d8b4643760644-20">
               20
              </div>
             </div>
            </td>
            <td class="crayon-code">
             <div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;">
              <div class="crayon-line" id="crayon-576869bd1d8b4643760644-1">
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d8b4643760644-2">
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                gt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-e">
                library
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                RJSONIO
               </span>
               <span class="crayon-sy">
                )
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d8b4643760644-3">
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                gt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-e">
                library
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                plyr
               </span>
               <span class="crayon-sy">
                )
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d8b4643760644-4">
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                gt
               </span>
               <span class="crayon-sy">
                ;
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d8b4643760644-5">
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                gt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                df
               </span>
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                lt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-o">
                -
               </span>
               <span class="crayon-v">
                data
               </span>
               <span class="crayon-sy">
                .
               </span>
               <span class="crayon-e">
                frame
               </span>
               <span class="crayon-sy">
                (
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d8b4643760644-6">
               <span class="crayon-o">
                +
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                a
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-e">
                rep
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                letters
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-cn">
                100
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d8b4643760644-7">
               <span class="crayon-o">
                +
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                b
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-e">
                rnorm
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-cn">
                2600
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-sy">
                ,
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d8b4643760644-8">
               <span class="crayon-o">
                +
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                c
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-st">
                as
               </span>
               <span class="crayon-sy">
                .
               </span>
               <span class="crayon-e">
                factor
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                Sys
               </span>
               <span class="crayon-sy">
                .
               </span>
               <span class="crayon-e">
                Date
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-o">
                -
               </span>
               <span class="crayon-e">
                rep
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-cn">
                1
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-cn">
                2600
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-sy">
                )
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d8b4643760644-9">
               <span class="crayon-o">
                +
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                )
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d8b4643760644-10">
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                gt
               </span>
               <span class="crayon-sy">
                ;
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d8b4643760644-11">
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                gt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                system
               </span>
               <span class="crayon-sy">
                .
               </span>
               <span class="crayon-e">
                time
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                RJSONIO
               </span>
               <span class="crayon-o">
                ::
               </span>
               <span class="crayon-e">
                toJSON
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                df
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-sy">
                )
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d8b4643760644-12">
               <span class="crayon-cn">
                0.03
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0.00
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0.03
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d8b4643760644-13">
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                gt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                system
               </span>
               <span class="crayon-sy">
                .
               </span>
               <span class="crayon-e">
                time
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                RJSONIO
               </span>
               <span class="crayon-o">
                ::
               </span>
               <span class="crayon-e">
                toJSON
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                df
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-sy">
                )
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d8b4643760644-14">
               <span class="crayon-cn">
                0.04
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0.00
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0.03
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d8b4643760644-15">
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d8b4643760644-16">
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                gt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                system
               </span>
               <span class="crayon-sy">
                .
               </span>
               <span class="crayon-e">
                time
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                RJSONIO
               </span>
               <span class="crayon-o">
                ::
               </span>
               <span class="crayon-e">
                toJSON
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-e">
                unname
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-e">
                alply
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                df
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                1
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                identity
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-sy">
                )
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d8b4643760644-17">
               <span class="crayon-cn">
                2.82
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0.02
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                2.84
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d8b4643760644-18">
               <span class="crayon-o">
                &amp;
               </span>
               <span class="crayon-v">
                gt
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                system
               </span>
               <span class="crayon-sy">
                .
               </span>
               <span class="crayon-e">
                time
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                RJSONIO
               </span>
               <span class="crayon-o">
                ::
               </span>
               <span class="crayon-e">
                toJSON
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-e">
                unname
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-e">
                alply
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                df
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                1
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                identity
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-sy">
                )
               </span>
              </div>
              <div class="crayon-line" id="crayon-576869bd1d8b4643760644-19">
               <span class="crayon-cn">
                2.06
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0.00
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                2.06
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-576869bd1d8b4643760644-20">
              </div>
             </div>
            </td>
           </tr>
          </tbody>
         </table>
        </div>
       </div>
       <!-- [Format Time: 0.0129 seconds] -->
       <p>
       </p>
       <p style="color: #4d4d4f;">
        通过测试我们发现，用toJSON直接列式输出，比行式输出要高效的多。同时，rjson要比RJSONIO高效。
       </p>
       <p>
        <strong>
         关于作者：
        </strong>
       </p>
       <ul>
        <li>
         张丹(Conan), 程序员Java,R,PHP,Javascript
        </li>
        <li>
         weibo：@Conan_Z
        </li>
        <li>
         blog:
         <a href="http://blog.fens.me/" style="color: #0e73b8;" target="_blank" title="粉丝日志|跨界的IT博客">
          http://blog.fens.me
         </a>
        </li>
        <li>
         email: bsspirit@gmail.com
        </li>
       </ul>
      </div>
      <div>
       <strong>
        注：转载文章均来自于公开网络，仅供学习使用，不会用于任何商业用途，如果侵犯到原作者的权益，请您与我们联系删除或者授权事宜，联系邮箱：contact@dataunion.org。转载数盟网站文章请注明原文章作者，否则产生的任何版权纠纷与数盟无关。
       </strong>
      </div>
      <!--content_text-->
      <div class="fenxian">
       <!-- JiaThis Button BEGIN -->
       <div class="jiathis_style_32x32">
        <p class="jiathis_button_weixin">
        </p>
        <p class="jiathis_button_tsina">
        </p>
        <p class="jiathis_button_qzone">
        </p>
        <p class="jiathis_button_cqq">
        </p>
        <p class="jiathis_button_tumblr">
        </p>
        <a class="jiathis jiathis_txt jtico jtico_jiathis" href="http://www.jiathis.com/share" target="_blank">
        </a>
        <p class="jiathis_counter_style">
        </p>
       </div>
       <!-- JiaThis Button END -->
      </div>
     </article>
     <!--content-->
     <!--相关文章-->
     <div class="xianguan">
      <div class="xianguantitle">
       相关文章！
      </div>
      <ul class="pic">
       <li>
        <a href="http://dataunion.org/24678.html">
         <img src="http://dataunion.org/wp-content/uploads/2016/06/20140917125452915416-216x200.jpg"/>
        </a>
        <a class="link" href="http://dataunion.org/24678.html" rel="bookmark" title="python3中的正则模块">
         python3中的正则模块
        </a>
       </li>
       <li>
        <a href="http://dataunion.org/24675.html">
         <img src="http://dataunion.org/wp-content/uploads/2016/06/t015b337bd75d9ef893-161x200.jpg"/>
        </a>
        <a class="link" href="http://dataunion.org/24675.html" rel="bookmark" title="注释是恶魔，请不要再写一行注释">
         注释是恶魔，请不要再写一行注释
        </a>
       </li>
       <li>
        <a href="http://dataunion.org/24660.html">
         <img src="http://dataunion.org/wp-content/uploads/2016/06/u16130037972892789947fm21gp0-300x157.jpg"/>
        </a>
        <a class="link" href="http://dataunion.org/24660.html" rel="bookmark" title="如何从Github上轻松安装R包">
         如何从Github上轻松安装R包
        </a>
       </li>
       <li>
        <a href="http://dataunion.org/24654.html">
         <img src="http://dataunion.org/wp-content/uploads/2016/06/df53fac99fc53ba5a90666abcca25e6d_b-267x200.png"/>
        </a>
        <a class="link" href="http://dataunion.org/24654.html" rel="bookmark" title="简单形象又有趣地说说强大的神经网络">
         简单形象又有趣地说说强大的神经网络
        </a>
       </li>
      </ul>
     </div>
     <!--相关文章-->
     <div class="comment" id="comments">
      <!-- You can start editing here. -->
      <!-- If comments are closed. -->
      <p class="nocomments">
       Comments are closed.
      </p>
     </div>
     <!-- .nav-single -->
    </div>
    <!--Container End-->
    <aside id="sitebar">
     <div class="sitebar_list2">
      <div class="wptag">
       <span class="tagtitle">
        热门标签+
       </span>
       <div class="tagg">
        <ul class="menu" id="menu-%e5%8f%8b%e6%83%85%e9%93%be%e6%8e%a5">
         <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-1605" id="menu-item-1605">
          <a href="http://taidizh.com/">
           泰迪智慧
          </a>
         </li>
         <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-20884" id="menu-item-20884">
          <a href="http://www.transwarp.cn/">
           星环科技
          </a>
         </li>
         <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-3538" id="menu-item-3538">
          <a href="http://datall.org/">
           珈和遥感
          </a>
         </li>
         <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-20888" id="menu-item-20888">
          <a href="http://www.chinahadoop.cn/">
           小象学院
          </a>
         </li>
        </ul>
       </div>
      </div>
     </div>
     <div class="sitebar_list">
      <div class="textwidget">
       <div align="center">
        <a href="http://study.163.com/course/courseMain.htm?courseId=991022" target="_blank">
         <img src="http://dataunion.org/wp-content/uploads/2016/03/dv.jpg"/>
        </a>
       </div>
      </div>
     </div>
     <div class="sitebar_list">
      <h4 class="sitebar_title">
       文章分类
      </h4>
      <div class="tagcloud">
       <a class="tag-link-44" href="http://dataunion.org/category/industry/demo" style="font-size: 10.204724409449pt;" title="4个话题">
        Demo展示
       </a>
       <a class="tag-link-31" href="http://dataunion.org/category/experts" style="font-size: 15.826771653543pt;" title="52个话题">
        专家团队
       </a>
       <a class="tag-link-870" href="http://dataunion.org/category/tech/ai" style="font-size: 19.795275590551pt;" title="273个话题">
        人工智能
       </a>
       <a class="tag-link-488" href="http://dataunion.org/category/%e5%8a%a0%e5%85%a5%e6%95%b0%e7%9b%9f" style="font-size: 8pt;" title="1个话题">
        加入数盟
       </a>
       <a class="tag-link-869" href="http://dataunion.org/category/tech/viz" style="font-size: 17.204724409449pt;" title="93个话题">
        可视化
       </a>
       <a class="tag-link-30" href="http://dataunion.org/category/partners" style="font-size: 10.645669291339pt;" title="5个话题">
        合作伙伴
       </a>
       <a class="tag-link-889" href="http://dataunion.org/category/parterc" style="font-size: 11.582677165354pt;" title="8个话题">
        合作会议
       </a>
       <a class="tag-link-104" href="http://dataunion.org/category/books" style="font-size: 12.96062992126pt;" title="15个话题">
        图书
       </a>
       <a class="tag-link-220" href="http://dataunion.org/category/tech/base" style="font-size: 19.850393700787pt;" title="281个话题">
        基础架构
       </a>
       <a class="tag-link-219" href="http://dataunion.org/category/tech/analysis" style="font-size: 19.409448818898pt;" title="232个话题">
        数据分析
       </a>
       <a class="tag-link-887" href="http://dataunion.org/category/tech/dm" style="font-size: 13.291338582677pt;" title="17个话题">
        数据挖掘
       </a>
       <a class="tag-link-34" href="http://dataunion.org/category/tech" style="font-size: 20.732283464567pt;" title="404个话题">
        文章
       </a>
       <a class="tag-link-1" href="http://dataunion.org/category/uncategorized" style="font-size: 22pt;" title="693个话题">
        未分类
       </a>
       <a class="tag-link-4" href="http://dataunion.org/category/events" style="font-size: 14.503937007874pt;" title="29个话题">
        活动
       </a>
       <a class="tag-link-890" href="http://dataunion.org/category/tech/%e6%b7%b1%e5%ba%a6%e5%ad%a6%e4%b9%a0" style="font-size: 10.204724409449pt;" title="4个话题">
        深度学习
       </a>
       <a class="tag-link-221" href="http://dataunion.org/category/tech/devl" style="font-size: 18.968503937008pt;" title="193个话题">
        编程语言
       </a>
       <a class="tag-link-888" href="http://dataunion.org/category/career" style="font-size: 15.661417322835pt;" title="48个话题">
        职业规划
       </a>
       <a class="tag-link-5" href="http://dataunion.org/category/jobs" style="font-size: 14.11811023622pt;" title="25个话题">
        职位
       </a>
       <a class="tag-link-871" href="http://dataunion.org/category/industry" style="font-size: 15.716535433071pt;" title="49个话题">
        行业
       </a>
       <a class="tag-link-613" href="http://dataunion.org/category/industry/case" style="font-size: 16.984251968504pt;" title="84个话题">
        行业应用
       </a>
       <a class="tag-link-885" href="http://dataunion.org/category/industry/news" style="font-size: 17.425196850394pt;" title="102个话题">
        行业资讯
       </a>
       <a class="tag-link-10" href="http://dataunion.org/category/training" style="font-size: 14.228346456693pt;" title="26个话题">
        课程
       </a>
       <a class="tag-link-16" href="http://dataunion.org/category/sources" style="font-size: 15.661417322835pt;" title="48个话题">
        资源
       </a>
      </div>
     </div>
     <div class="sitebar_list">
      <h4 class="sitebar_title">
       功能
      </h4>
      <ul>
       <li>
        <a href="http://dataunion.org/wp-login.php?action=register">
         注册
        </a>
       </li>
       <li>
        <a href="http://dataunion.org/wp-login.php">
         登录
        </a>
       </li>
       <li>
        <a href="http://dataunion.org/feed">
         文章
         <abbr title="Really Simple Syndication">
          RSS
         </abbr>
        </a>
       </li>
       <li>
        <a href="http://dataunion.org/comments/feed">
         评论
         <abbr title="Really Simple Syndication">
          RSS
         </abbr>
        </a>
       </li>
       <li>
        <a href="https://cn.wordpress.org/" title="基于WordPress，一个优美、先进的个人信息发布平台。">
         WordPress.org
        </a>
       </li>
      </ul>
     </div>
    </aside>
    <div class="clear">
    </div>
   </div>
   <!--main-->
   ﻿
   <footer id="dibu">
    <div class="about">
     <div class="right">
      <ul class="menu" id="menu-%e5%ba%95%e9%83%a8%e8%8f%9c%e5%8d%95">
       <li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-18024" id="menu-item-18024">
        <a href="http://dataunion.org/category/partners">
         合作伙伴
        </a>
       </li>
       <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-20881" id="menu-item-20881">
        <a href="http://dataunion.org/contribute">
         文章投稿
        </a>
       </li>
       <li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-20872" id="menu-item-20872">
        <a href="http://dataunion.org/category/%e5%8a%a0%e5%85%a5%e6%95%b0%e7%9b%9f">
         加入数盟
        </a>
       </li>
       <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-22441" id="menu-item-22441">
        <a href="http://dataunion.org/f-links">
         友情链接
        </a>
       </li>
       <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-20874" id="menu-item-20874">
        <a href="http://dataunion.org/aboutus">
         关于数盟
        </a>
       </li>
      </ul>
      <p class="banquan">
       数盟社区        ，
        做最棒的数据科学社区
      </p>
     </div>
     <div class="left">
      <ul class="bottomlist">
       <li>
        <a href="http://weibo.com/DataScientistUnion  " target="_blank" 　title="">
         <img src="http://dataunion.org/wp-content/themes/yzipi/images/weibo.png"/>
        </a>
       </li>
       <li>
        <a class="cd-popup-trigger" href="http://dataunion.org/1368.html#0">
         <img src="http://dataunion.org/wp-content/themes/yzipi/images/weixin.png"/>
        </a>
       </li>
      </ul>
      <div class="cd-popup">
       <div class="cd-popup-container">
        <h1>
         扫描二维码,加微信公众号
        </h1>
        <img src="http://dataunion.org/wp-content/themes/yzipi/images/2014-12-06-1515289049.png"/>
        <a class="cd-popup-close" href="http://dataunion.org/1368.html">
        </a>
       </div>
       <!-- cd-popup-container -->
      </div>
      <!-- cd-popup -->
     </div>
    </div>
    <!--about-->
    <div class="bottom">
     <a href="http://dataunion.org/">
      数盟社区
     </a>
     <a href="http://www.miitbeian.gov.cn/" rel="external nofollow" target="_blank">
      京ICP备14026740号
     </a>
     联系我们：
     <a href="mailto:contact@dataunion.org" target="_blank">
      contact@dataunion.org
     </a>
     <div class="tongji">
     </div>
     <!--bottom-->
     <div class="scroll" id="scroll" style="display:none;">
      ︿
     </div>
    </div>
   </footer>
   <!--dibu-->
  </div>
 </body>
</html>